blob: 727f32f1c60728701b58919b2dfeace1cb2324d5 (
plain)
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file pthread.h
*
* threads
*
* $Id$
*
* @author Don Hinton <dhinton@ieee.org>
* @author This code was originally in various places including ace/OS.h.
*/
//=============================================================================
#ifndef ACE_OS_INCLUDE_PTHREAD_H
#define ACE_OS_INCLUDE_PTHREAD_H
#include "ace/pre.h"
#include "ace/config-all.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/os_include/sys/types.h"
// This needs to go here *first* to avoid problems with AIX.
# if defined (ACE_HAS_PTHREADS)
//extern "C" {
# define ACE_DONT_INCLUDE_ACE_SIGNAL_H
# include "ace/os_include/signal.h"
# undef ACE_DONT_INCLUDE_ACE_SIGNAL_H
//# include "ace/os_include/pthread.h"
# if defined (DIGITAL_UNIX)
# define pthread_self __pthread_self
extern "C" pthread_t pthread_self (void);
# endif /* DIGITAL_UNIX */
//}
# if defined (HPUX_10)
// HP-UX 10 needs to see cma_sigwait, and since _CMA_NOWRAPPERS_ is defined,
// this header does not get included from pthreads.h.
# include /**/x <dce/cma_sigwait.h>
# endif /* HPUX_10 */
# endif /* ACE_HAS_PTHREADS */
#if !defined (ACE_LACKS_PTHREAD_H)
# include /**/ <pthread.h>
#endif /* !ACE_LACKS_PTHREAD_H */
#include "ace/post.h"
#endif /* ACE_OS_INCLUDE_PTHREAD_H */
|