Grid Community Toolkit  6.2.1705709074 (tag: v6.2.20240202)
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
32 #if !defined(GLOBUS_THREAD_POOL_H)
33 #define GLOBUS_THREAD_POOL_H 1
34 
35 #include "globus_common_include.h"
36 #include "globus_thread.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
42 int
43 globus_i_thread_pool_activate(void);
44 
45 int
46 globus_i_thread_pool_deactivate(void);
47 
48 void
49 globus_i_thread_start(
50  globus_thread_func_t func,
51  void * user_arg);
52 
53 int
54 globus_thread_pool_key_create(
55  globus_thread_key_t * key,
57 
58 /******************************************************************************
59  Module definition
60 ******************************************************************************/
61 extern globus_module_descriptor_t globus_i_thread_pool_module;
62 
63 #define GLOBUS_THREAD_POOL_MODULE (&globus_i_thread_pool_module)
64 
65 #ifdef __cplusplus
66 }
67 #endif
68 #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:71