My Project
UDK 3.2.7 C/C++ API Reference
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
threadpool.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
3  *
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * Copyright 2000, 2010 Oracle and/or its affiliates.
7  *
8  * OpenOffice.org - a multi-platform office productivity suite
9  *
10  * This file is part of OpenOffice.org.
11  *
12  * OpenOffice.org is free software: you can redistribute it and/or modify
13  * it under the terms of the GNU Lesser General Public License version 3
14  * only, as published by the Free Software Foundation.
15  *
16  * OpenOffice.org is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Lesser General Public License version 3 for more details
20  * (a copy is included in the LICENSE file that accompanied this code).
21  *
22  * You should have received a copy of the GNU Lesser General Public License
23  * version 3 along with OpenOffice.org. If not, see
24  * <http://www.openoffice.org/license.html>
25  * for a copy of the LGPLv3 License.
26  *
27  ************************************************************************/
28 
29 #include <cppu/cppudllapi.h>
30 #include <rtl/byteseq.h>
31 
32 #ifdef __cplusplus
33 extern "C" {
34 #endif
35 
36 /***
37  * Thread identifier administration.
38  ***/
55 
56 
67 CPPU_DLLPUBLIC void SAL_CALL uno_getIdOfCurrentThread( sal_Sequence **ppThreadId )
69 
70 
77 
78 
79 struct _uno_ThreadPool;
80 typedef struct _uno_ThreadPool * uno_ThreadPool;
81 
86 CPPU_DLLPUBLIC uno_ThreadPool SAL_CALL
88 
89 
101 CPPU_DLLPUBLIC void SAL_CALL
102 uno_threadpool_attach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
103 
113 CPPU_DLLPUBLIC void SAL_CALL
114 uno_threadpool_enter( uno_ThreadPool hPool , void **ppJob )
115  SAL_THROW_EXTERN_C();
116 
121 CPPU_DLLPUBLIC void SAL_CALL
122 uno_threadpool_detach( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
123 
153 CPPU_DLLPUBLIC void SAL_CALL
155  uno_ThreadPool hPool,
156  sal_Sequence *pThreadId,
157  void *pJob,
158  void ( SAL_CALL * doRequest ) ( void *pThreadSpecificData ),
159  sal_Bool bIsOneway ) SAL_THROW_EXTERN_C();
160 
172 CPPU_DLLPUBLIC void SAL_CALL
173 uno_threadpool_dispose( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
174 
175 
185 CPPU_DLLPUBLIC void SAL_CALL
186 uno_threadpool_destroy( uno_ThreadPool hPool ) SAL_THROW_EXTERN_C();
187 
188 #ifdef __cplusplus
189 }
190 #endif
191 
192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */