summaryrefslogtreecommitdiff
path: root/ACE/ace/OS_NS_Thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/ace/OS_NS_Thread.h')
-rw-r--r--ACE/ace/OS_NS_Thread.h51
1 files changed, 50 insertions, 1 deletions
diff --git a/ACE/ace/OS_NS_Thread.h b/ACE/ace/OS_NS_Thread.h
index e6aaee61bba..2cbe9679a77 100644
--- a/ACE/ace/OS_NS_Thread.h
+++ b/ACE/ace/OS_NS_Thread.h
@@ -1086,6 +1086,9 @@ namespace ACE_OS {
int type = ACE_DEFAULT_SYNCH_TYPE);
ACE_NAMESPACE_INLINE_FUNCTION
+ int condattr_synctype (ACE_condattr_t &attributes, int& type);
+
+ ACE_NAMESPACE_INLINE_FUNCTION
int condattr_destroy (ACE_condattr_t &attributes);
ACE_NAMESPACE_INLINE_FUNCTION
@@ -1184,7 +1187,7 @@ namespace ACE_OS {
extern ACE_Export
int event_destroy (ACE_event_t *event);
- extern ACE_Export
+ ACE_NAMESPACE_INLINE_FUNCTION
int event_init (ACE_event_t *event,
int manual_reset = 0,
int initial_state = 0,
@@ -1193,6 +1196,16 @@ namespace ACE_OS {
void *arg = 0,
LPSECURITY_ATTRIBUTES sa = 0);
+ extern ACE_Export
+ int event_init (ACE_event_t *event,
+ int type,
+ ACE_condattr_t *attributes,
+ int manual_reset = 0,
+ int initial_state = 0,
+ const char *name = 0,
+ void *arg = 0,
+ LPSECURITY_ATTRIBUTES sa = 0);
+
# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int event_init (ACE_event_t *event,
@@ -1202,6 +1215,16 @@ namespace ACE_OS {
const wchar_t *name,
void *arg = 0,
LPSECURITY_ATTRIBUTES sa = 0);
+
+ ACE_NAMESPACE_INLINE_FUNCTION
+ int event_init (ACE_event_t *event,
+ int type,
+ ACE_condattr_t *attributes,
+ int manual_reset,
+ int initial_state,
+ const wchar_t *name,
+ void *arg = 0,
+ LPSECURITY_ATTRIBUTES sa = 0);
# endif /* ACE_HAS_WCHAR */
extern ACE_Export
@@ -1421,6 +1444,16 @@ namespace ACE_OS {
int max = 0x7fffffff,
LPSECURITY_ATTRIBUTES sa = 0);
+ ACE_NAMESPACE_INLINE_FUNCTION
+ int sema_init (ACE_sema_t *s,
+ u_int count,
+ int type,
+ ACE_condattr_t *attributes,
+ const char *name = 0,
+ void *arg = 0,
+ int max = 0x7fffffff,
+ LPSECURITY_ATTRIBUTES sa = 0);
+
# if defined (ACE_HAS_WCHAR)
ACE_NAMESPACE_INLINE_FUNCTION
int sema_init (ACE_sema_t *s,
@@ -1430,6 +1463,16 @@ namespace ACE_OS {
void *arg = 0,
int max = 0x7fffffff,
LPSECURITY_ATTRIBUTES sa = 0);
+
+ ACE_NAMESPACE_INLINE_FUNCTION
+ int sema_init (ACE_sema_t *s,
+ u_int count,
+ int type,
+ ACE_condattr_t *attributes,
+ const wchar_t *name,
+ void *arg = 0,
+ int max = 0x7fffffff,
+ LPSECURITY_ATTRIBUTES sa = 0);
# endif /* ACE_HAS_WCHAR */
ACE_NAMESPACE_INLINE_FUNCTION
@@ -1833,12 +1876,18 @@ ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class ACE_Export ACE_event_t
{
friend int ACE_OS::event_init(ACE_event_t*, int, int, int, const char*, void*,int);
+ friend int ACE_OS::event_init(ACE_event_t*, int, ACE_condattr_t*, int, int, const char*, void*,int);
friend int ACE_OS::event_destroy(ACE_event_t*);
friend int ACE_OS::event_wait(ACE_event_t*);
friend int ACE_OS::event_timedwait(ACE_event_t*, ACE_Time_Value*, int);
friend int ACE_OS::event_signal(ACE_event_t*);
friend int ACE_OS::event_pulse(ACE_event_t*);
friend int ACE_OS::event_reset(ACE_event_t*);
+
+public:
+ /// Constructor initializing all pointer fields to null
+ ACE_event_t (void);
+
protected:
/// Event name if process shared.