summaryrefslogtreecommitdiff
path: root/ace/config-fsu-pthread.h
blob: 62400b91f5717afa641f39dbc5a180b001b6c8a7 (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
55
56
57
// $Id$

#ifndef ACE_CONFIG_FSU_PTHREAD_H
#define ACE_CONFIG_FSU_PTHREAD_H

#define ACE_LACKS_CONST_TIMESPEC_PTR

// Threads
#define ACE_HAS_THREADS
#if !defined(ACE_MT_SAFE)
#define ACE_MT_SAFE 1
#endif

/*
** FSU implements 1003.4a draft 6 threads - the ACE_HAS_FSU_PTHREADS def
** is needed for some peculiarities with this particular implementation.
*/
#define ACE_HAS_PTHREADS
#define ACE_HAS_PTHREADS_DRAFT6
#define ACE_HAS_FSU_PTHREADS
#define ACE_HAS_THREAD_SPECIFIC_STORAGE
#define ACE_HAS_SIGWAIT
#define ACE_HAS_PTHREAD_YIELD_VOID_PTR
#define ACE_HAS_PTHREAD_ATTR_INIT
#define ACE_HAS_PTHREAD_ATTR_DESTROY
#define ACE_LACKS_THREAD_STACK_ADDR
#define ACE_LACKS_PTHREAD_THR_SIGSETMASK
#define ACE_LACKS_CONDATTR_PSHARED
#define ACE_LACKS_MUTEXATTR_PSHARED
#define ACE_LACKS_RWLOCK_T
#define ACE_LACKS_SETSCHED
#if defined(M_UNIX)
#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
#endif

#if !defined(ACE_HAS_POSIX_TIME)
#define ACE_HAS_POSIX_TIME
#define ACE_LACKS_TIMESPEC_T
#endif

#include <pthread.h>

#if !defined(PTHREAD_STACK_MIN)
#define PTHREAD_STACK_MIN (1024*10)
#endif

#define ACE_LACKS_THREAD_PROCESS_SCOPING

#undef PTHREAD_INHERIT_SCHED

struct sched_param
{
  int sched_priority;
  int prio;
};

#endif /* ACE_CONFIG_FSU_PTHREAD_H */