ACE 8.0.0
Loading...
Searching...
No Matches
Macros | Functions
Thread_Manager.cpp File Reference
#include "ace/TSS_T.h"
#include "ace/Thread_Manager.h"
#include "ace/Dynamic.h"
#include "ace/Object_Manager.h"
#include "ace/Singleton.h"
#include "ace/Guard_T.h"
#include "ace/Time_Value.h"
#include "ace/OS_NS_sys_time.h"
#include "ace/Truncate.h"
#include <memory>

Macros

#define ACE_FIND(OP, INDEX)    ACE_Thread_Descriptor *INDEX = OP; \
 
#define ACE_THR_OP(OP, STATE)
 
#define ACE_EXECUTE_OP(OP, ARG)
 

Functions

 ACE_ALLOC_HOOK_DEFINE (ACE_Thread_Descriptor_Base)
 

Macro Definition Documentation

◆ ACE_EXECUTE_OP

#define ACE_EXECUTE_OP ( OP,
ARG )
Value:
ACE_ASSERT (this->thr_to_be_removed_.is_empty ()); \
ACE_FIND (this->find_thread (t_id), ptr); \
if (ptr == 0) \
{ \
return -1; \
} \
int const result = OP (ptr, ARG); \
while (! this->thr_to_be_removed_.is_empty ()) { \
this->thr_to_be_removed_.dequeue_head (td); \
this->remove_thr (td, 1); \
} \
return result
#define ACE_GUARD_RETURN(MUTEX, OBJ, LOCK, RETURN)
Definition Global_Macros.h:121
This class inherits the interface of the abstract ACE_Dumpable class and is instantiated with the imp...
Definition Dump_T.h:39
Provides a wrapper to improve performance when thread-specific errno must be saved and restored in a ...
Definition OS_Errno.h:45
Information for controlling threads that run under the control of the Thread_Manager.
Definition Thread_Manager.h:231
ACE_Thread_Mutex wrapper (only valid for threads in the same process).
Definition Thread_Mutex.h:47

◆ ACE_FIND

#define ACE_FIND ( OP,
INDEX )    ACE_Thread_Descriptor *INDEX = OP; \

◆ ACE_THR_OP

#define ACE_THR_OP ( OP,
STATE )
Value:
int result = OP (td->thr_handle_); \
if (result == -1) { \
this->thr_to_be_removed_.enqueue_tail (td); \
return -1; \
} \
else { \
ACE_SET_BITS (td->thr_state_, STATE); \
return 0; \
}
#define ENOTSUP
Definition os_errno.h:440

Function Documentation

◆ ACE_ALLOC_HOOK_DEFINE()

ACE_ALLOC_HOOK_DEFINE ( ACE_Thread_Descriptor_Base )