UDK 3.2.7 C/C++ API Reference
uno/threadpool.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /*************************************************************************
00003  *
00004  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
00005  *
00006  * Copyright 2000, 2010 Oracle and/or its affiliates.
00007  *
00008  * OpenOffice.org - a multi-platform office productivity suite
00009  *
00010  * This file is part of OpenOffice.org.
00011  *
00012  * OpenOffice.org is free software: you can redistribute it and/or modify
00013  * it under the terms of the GNU Lesser General Public License version 3
00014  * only, as published by the Free Software Foundation.
00015  *
00016  * OpenOffice.org is distributed in the hope that it will be useful,
00017  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00018  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00019  * GNU Lesser General Public License version 3 for more details
00020  * (a copy is included in the LICENSE file that accompanied this code).
00021  *
00022  * You should have received a copy of the GNU Lesser General Public License
00023  * version 3 along with OpenOffice.org.  If not, see
00024  * <http://www.openoffice.org/license.html>
00025  * for a copy of the LGPLv3 License.
00026  *
00027  ************************************************************************/
00028 
00029 #include <cppu/cppudllapi.h>
00030 #include <rtl/byteseq.h>
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00036 /***
00037  * Thread identifier administration.
00038  ***/
00053 CPPU_DLLPUBLIC sal_Bool SAL_CALL uno_bindIdToCurrentThread( sal_Sequence *pThreadId )
00054     SAL_THROW_EXTERN_C();
00055 
00056 
00067 CPPU_DLLPUBLIC void SAL_CALL uno_getIdOfCurrentThread( sal_Sequence **ppThreadId )
00068     SAL_THROW_EXTERN_C();
00069 
00070 
00075 CPPU_DLLPUBLIC void SAL_CALL uno_releaseIdFromCurrentThread()
00076     SAL_THROW_EXTERN_C();
00077 
00078 
00079 struct _uno_ThreadPool;
00080 typedef struct _uno_ThreadPool * uno_ThreadPool;
00081 
00086 CPPU_DLLPUBLIC uno_ThreadPool SAL_CALL
00087 uno_threadpool_create() SAL_THROW_EXTERN_C();
00088 
00089 
00101 CPPU_DLLPUBLIC void SAL_CALL
00102 uno_threadpool_attach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
00103 
00113 CPPU_DLLPUBLIC void SAL_CALL
00114 uno_threadpool_enter( uno_ThreadPool hPool , void **ppJob )
00115     SAL_THROW_EXTERN_C();
00116 
00121 CPPU_DLLPUBLIC void SAL_CALL
00122 uno_threadpool_detach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
00123 
00153 CPPU_DLLPUBLIC void SAL_CALL
00154 uno_threadpool_putJob(
00155     uno_ThreadPool hPool,
00156     sal_Sequence *pThreadId,
00157     void *pJob,
00158     void ( SAL_CALL * doRequest ) ( void *pThreadSpecificData ),
00159     sal_Bool bIsOneway ) SAL_THROW_EXTERN_C();
00160 
00172 CPPU_DLLPUBLIC void SAL_CALL
00173 uno_threadpool_dispose( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
00174 
00175 
00185 CPPU_DLLPUBLIC void SAL_CALL
00186 uno_threadpool_destroy( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
00187 
00188 #ifdef __cplusplus
00189 }
00190 #endif
00191 
00192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines