Grid Community Toolkit  6.2.1541705016
globus_thread_pool.h
Go to the documentation of this file.
1 /*
2  * Copyright 1999-2006 University of Chicago
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
30 #if !defined(GLOBUS_THREAD_POOL_H)
31 #define GLOBUS_THREAD_POOL_H 1
32 
33 #include "globus_common_include.h"
34 #include "globus_thread.h"
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
40 int
41 globus_i_thread_pool_activate(void);
42 
43 int
44 globus_i_thread_pool_deactivate(void);
45 
46 void
47 globus_i_thread_start(
48  globus_thread_func_t func,
49  void * user_arg);
50 
51 int
52 globus_thread_pool_key_create(
53  globus_thread_key_t * key,
55 
56 /******************************************************************************
57  Module definition
58 ******************************************************************************/
59 extern globus_module_descriptor_t globus_i_thread_pool_module;
60 
61 #define GLOBUS_THREAD_POOL_MODULE (&globus_i_thread_pool_module)
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 #endif
Globus Threading Abstraction.
void(* globus_thread_key_destructor_func_t)(void *value)
Thread-specific data destructor.
Definition: globus_thread.h:195
Thread-specific data key.
Definition: globus_thread.h:201
Include System Headers.
Module Descriptor.
Definition: globus_module.h:69