/usr/include/globus/globus_thread_common.h is in libglobus-common-dev 17.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | /*
* Copyright 1999-2006 University of Chicago
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file globus_thread_common.h
* @brief Common Thread Interface
*/
#ifndef GLOBUS_THREAD_COMMON_H
#define GLOBUS_THREAD_COMMON_H
#include "globus_common_include.h"
#include "globus_module.h"
#include "globus_callback.h"
#ifdef __cplusplus
extern "C" {
#endif
extern globus_module_descriptor_t globus_i_thread_common_module;
#define GLOBUS_THREAD_COMMON_MODULE (&globus_i_thread_common_module)
typedef int globus_thread_callback_index_t;
/* function prototypes */
typedef
void
(*globus_thread_blocking_func_t)(
globus_thread_callback_index_t ndx,
globus_callback_space_t space,
void * user_args);
#define globus_thread_blocking_callback_push(f, u, i) \
globus_thread_blocking_space_callback_push( \
(f), (u), GLOBUS_CALLBACK_GLOBAL_SPACE, (i))
int
globus_thread_blocking_space_callback_push(
globus_thread_blocking_func_t func,
void * user_args,
globus_callback_space_t space,
globus_thread_callback_index_t * i);
int
globus_thread_blocking_callback_pop(
globus_thread_callback_index_t * i);
int
globus_thread_blocking_callback_enable(
globus_thread_callback_index_t * i);
int
globus_thread_blocking_callback_disable(
globus_thread_callback_index_t * i);
#define globus_thread_blocking_will_block() \
globus_thread_blocking_space_will_block(GLOBUS_CALLBACK_GLOBAL_SPACE)
int
globus_thread_blocking_space_will_block(
globus_callback_space_t blocking_space);
void
globus_thread_blocking_reset();
void thread_print(char * s, ...);
#ifdef __cplusplus
}
#endif
#endif
|