globus_thread_pool.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2006 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00030 #if !defined(GLOBUS_THREAD_POOL_H)
00031 #define GLOBUS_THREAD_POOL_H 1
00032 
00033 #include "globus_common_include.h"
00034 #include "globus_thread.h"
00035 
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039 
00040 int
00041 globus_i_thread_pool_activate(void);
00042 
00043 int
00044 globus_i_thread_pool_deactivate(void);
00045 
00046 void
00047 globus_i_thread_start(
00048     globus_thread_func_t                func,
00049     void *                              user_arg);
00050 
00051 int
00052 globus_thread_pool_key_create(  
00053     globus_thread_key_t *                 key,     
00054     globus_thread_key_destructor_func_t   func);
00055 
00056 /******************************************************************************
00057                                Module definition
00058 ******************************************************************************/
00059 extern globus_module_descriptor_t       globus_i_thread_pool_module;
00060 
00061 #define GLOBUS_THREAD_POOL_MODULE (&globus_i_thread_pool_module)
00062 
00063 #ifdef __cplusplus
00064 }
00065 #endif
00066 #endif

Generated on 20 Jun 2015 for globus_common by  doxygen 1.4.7