OS_NS_Thread.h File Reference

#include "ace/config-all.h"
#include "ace/Global_Macros.h"
#include "ace/Basic_Types.h"
#include "ace/Default_Constants.h"
#include "ace/os_include/os_pthread.h"
#include "ace/os_include/os_sched.h"
#include "ace/Base_Thread_Adapter.h"
#include "ace/os_include/sys/os_sem.h"
#include "ace/os_include/os_semaphore.h"
#include "ace/OS_Memory.h"
#include "ace/OS_NS_signal.h"
#include "ace/ACE_export.h"
#include "ace/Object_Manager_Base.h"
#include "ace/OS_NS_Thread.inl"

Include dependency graph for OS_NS_Thread.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  ACE_OS

Classes

class  ACE_recursive_thread_mutex_t
 Implement a thin C++ wrapper that allows nested acquisition and release of a mutex that occurs in the same thread. More...

struct  ACE_recursive_mutex_state
class  ACE_Thread_ID
 Defines a platform-independent thread ID class. Note that this class should be defined within the scope of a thread, rather than at global scope! More...

class  ACE_TSS_Ref
 "Reference count" for thread-specific storage keys. More...

class  ACE_TSS_Info
 Thread Specific Key management. More...

class  ACE_TSS_Keys
 Collection of in-use flags for a thread's TSS keys. For internal use only by ACE_TSS_Cleanup; it is public because some compilers can't use nested classes for template instantiation parameters. More...


Defines

#define ACE_EXPORT_MACRO   ACE_Export
#define ACE_SCOPE_PROCESS   0
#define ACE_SCOPE_LWP   1
#define ACE_SCOPE_THREAD   2
#define ACE_SCHED_OTHER   0
#define ACE_SCHED_FIFO   1
#define ACE_SCHED_RR   2
#define ACE_THR_PRI_FIFO_DEF   0
#define ACE_THR_PRI_OTHER_DEF   0
#define ACE_DEFAULT_SYNCH_TYPE   USYNC_THREAD
#define ACE_SELF   (0)
#define ACE_KEY_INDEX(OBJ, KEY)   u_int OBJ = KEY
#define ACE_PTHREAD_CLEANUP_PUSH(A)
#define ACE_PTHREAD_CLEANUP_POP(A)
#define ACE_OS_GUARD
#define ACE_TSS_CLEANUP_GUARD
#define ACE_TSS_BASE_GUARD
#define ACE_INLINE   inline

Typedefs

typedef HANDLE ACE_hthread_t
typedef DWORD ACE_OS_thread_key_t
typedef ACE_OS_thread_key_t ACE_thread_key_t
typedef int ACE_Sched_Priority
typedef int ACE_idtype_t
typedef DWORD ACE_id_t
typedef int ACE_pri_t

Variables

ACE_BEGIN_VERSIONED_NAMESPACE_DECL
typedef DWORD 
ACE_thread_t
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
class 
ACE_Base_Thread_Adapter


Detailed Description

OS_NS_Thread.h,v 1.61 2006/05/30 13:15:25 schmidt Exp

Author:
Douglas C. Schmidt <schmidt@cs.wustl.edu>

Jesper S. M|ller<stophph@diku.dk>

and a cast of thousands...

Originally in OS.h.

Definition in file OS_NS_Thread.h.


Define Documentation

#define ACE_DEFAULT_SYNCH_TYPE   USYNC_THREAD
 

Definition at line 730 of file OS_NS_Thread.h.

#define ACE_EXPORT_MACRO   ACE_Export
 

Definition at line 44 of file OS_NS_Thread.h.

#define ACE_INLINE   inline
 

Definition at line 2026 of file OS_NS_Thread.h.

#define ACE_KEY_INDEX OBJ,
KEY   )     u_int OBJ = KEY
 

Definition at line 1026 of file OS_NS_Thread.h.

Referenced by ACE_TSS_Cleanup::free_key(), ACE_TSS_Cleanup::insert(), ACE_TSS_Keys::is_set(), ACE_TSS_Keys::test_and_clear(), ACE_TSS_Keys::test_and_set(), ACE_TSS_Cleanup::thread_detach_key(), ACE_TSS_Cleanup::thread_exit(), and ACE_TSS_Cleanup::thread_use_key().

#define ACE_OS_GUARD
 

Definition at line 2017 of file OS_NS_Thread.h.

Referenced by ACE_OS::localtime_r(), ACE_OS::mktime(), ACE_OS::pread(), and ACE_OS::pwrite().

#define ACE_PTHREAD_CLEANUP_POP  ) 
 

Definition at line 1051 of file OS_NS_Thread.h.

Referenced by ACE_OS::rw_rdlock(), ACE_OS::rw_trywrlock_upgrade(), ACE_OS::rw_wrlock(), ACE_OS::sema_wait(), and ACE_Thread_Timer_Queue_Adapter< TQ >::svc().

#define ACE_PTHREAD_CLEANUP_PUSH  ) 
 

Definition at line 1050 of file OS_NS_Thread.h.

Referenced by ACE_OS::rw_rdlock(), ACE_OS::rw_trywrlock_upgrade(), ACE_OS::rw_wrlock(), ACE_OS::sema_wait(), and ACE_Thread_Timer_Queue_Adapter< TQ >::svc().

#define ACE_SCHED_FIFO   1
 

Definition at line 103 of file OS_NS_Thread.h.

Referenced by ACE_OS::lwp_getparams(), ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), ACE_OS::sched_params(), ACE_OS::set_scheduling_params(), ACE_OS::thr_create(), ACE_OS::thr_getprio(), and ACE_OS::thr_setprio().

#define ACE_SCHED_OTHER   0
 

Definition at line 102 of file OS_NS_Thread.h.

Referenced by ACE_OS::lwp_getparams(), ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), ACE_OS::set_scheduling_params(), ACE_OS::thr_create(), ACE_OS::thr_getprio(), and ACE_OS::thr_setprio().

#define ACE_SCHED_RR   2
 

Definition at line 104 of file OS_NS_Thread.h.

Referenced by ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), ACE_OS::sched_params(), ACE_OS::set_scheduling_params(), and ACE_OS::thr_setprio().

#define ACE_SCOPE_LWP   1
 

Definition at line 97 of file OS_NS_Thread.h.

Referenced by ACE_OS::lwp_setparams(), ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), and ACE_OS::sched_params().

#define ACE_SCOPE_PROCESS   0
 

Definition at line 96 of file OS_NS_Thread.h.

Referenced by ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), ACE_OS::sched_params(), and ACE_OS::set_scheduling_params().

#define ACE_SCOPE_THREAD   2
 

Definition at line 98 of file OS_NS_Thread.h.

Referenced by ACE_OS::lwp_getparams(), ACE_Sched_Params::priority_max(), ACE_Sched_Params::priority_min(), ACE_OS::sched_params(), and ACE_OS::set_scheduling_params().

#define ACE_SELF   (0)
 

Definition at line 742 of file OS_NS_Thread.h.

Referenced by ACE_OS::sched_params().

#define ACE_THR_PRI_FIFO_DEF   0
 

Definition at line 457 of file OS_NS_Thread.h.

Referenced by ACE_OS::thr_create().

#define ACE_THR_PRI_OTHER_DEF   0
 

Definition at line 469 of file OS_NS_Thread.h.

Referenced by ACE_OS::thr_create().

#define ACE_TSS_BASE_GUARD
 

Definition at line 2019 of file OS_NS_Thread.h.

#define ACE_TSS_CLEANUP_GUARD
 

Definition at line 2018 of file OS_NS_Thread.h.

Referenced by ACE_TSS_Cleanup::free_key(), ACE_TSS_Cleanup::insert(), ACE_TSS_Cleanup::thread_detach_key(), ACE_TSS_Cleanup::thread_exit(), ACE_TSS_Cleanup::thread_use_key(), and ACE_TSS_Cleanup::tss_keys().


Typedef Documentation

typedef HANDLE ACE_hthread_t
 

Definition at line 62 of file OS_NS_Thread.h.

Referenced by ACE_Thread_Control::ACE_Thread_Control(), ACE_Thread_ID::ACE_Thread_ID(), ACE_Thread_Timer_Queue_Adapter< TQ >::activate(), ACE_Task_Base::activate(), ACE_Thread_Manager::append_thr(), ACE_Thread_Manager::exit(), ACE_Thread_Manager::find_hthread(), ACE_Thread::getprio(), ACE_Thread_ID::handle(), ACE_Thread_Manager::hthread_descriptor(), ACE_Thread_Manager::hthread_grp_list(), ACE_Thread_Manager::hthread_list(), ACE_Thread_Manager::hthread_within(), ACE_Thread_Control::insert(), ACE_Thread_Manager::insert_thr(), ACE_OS_Thread_Adapter::invoke(), ACE_Thread_Adapter::invoke_i(), ACE_Thread::join(), ACE_Log_Msg::log(), ACE_Thread::resume(), ACE_Thread_Descriptor::self(), ACE_Thread::self(), ACE_Thread::setprio(), ACE_Thread_Manager::spawn(), ACE_Thread::spawn(), ACE_Thread_Manager::spawn_i(), ACE_Thread_Manager::spawn_n(), ACE_Thread::spawn_n(), ACE_Thread::suspend(), ACE_OS::thr_cancel(), ACE_OS::thr_cmp(), ACE_OS::thr_continue(), ACE_OS::thr_create(), ACE_OS::thr_exit(), ACE_OS::thr_get_affinity(), ACE_OS::thr_getprio(), ACE_OS::thr_join(), ACE_OS::thr_kill(), ACE_OS::thr_min_stack(), ACE_Thread_Manager::thr_self(), ACE_OS::thr_self(), ACE_OS::thr_set_affinity(), ACE_OS::thr_setprio(), and ACE_OS::thr_suspend().

typedef DWORD ACE_id_t
 

Definition at line 740 of file OS_NS_Thread.h.

Referenced by ACE_OS::lwp_getparams(), ACE_OS::priority_control(), ACE_OS::sched_params(), ACE_OS::scheduling_class(), and ACE_OS::set_scheduling_params().

typedef int ACE_idtype_t
 

Definition at line 739 of file OS_NS_Thread.h.

Referenced by ACE_OS::priority_control().

typedef DWORD ACE_OS_thread_key_t
 

Definition at line 64 of file OS_NS_Thread.h.

Referenced by ACE_TSS_Cleanup::remove_key().

typedef int ACE_pri_t
 

Definition at line 741 of file OS_NS_Thread.h.

typedef int ACE_Sched_Priority
 

Definition at line 721 of file OS_NS_Thread.h.

Referenced by ACE_Sched_Params::ACE_Sched_Params(), ACE_Sched_Params::priority(), and ACE_OS::thr_setprio().

typedef ACE_OS_thread_key_t ACE_thread_key_t
 

Definition at line 69 of file OS_NS_Thread.h.

Referenced by ACE_TSS_Cleanup::free_key(), ACE_Thread::getspecific(), ACE_TSS_Cleanup::insert(), ACE_TSS_Keys::is_set(), ACE_Thread::keycreate(), ACE_Thread::keyfree(), ACE_Thread::setspecific(), ACE_TSS_Keys::test_and_clear(), ACE_TSS_Keys::test_and_set(), ACE_OS::thr_getspecific(), ACE_OS::thr_key_detach(), ACE_OS::thr_key_used(), ACE_OS::thr_keycreate(), ACE_OS::thr_keyfree(), ACE_OS::thr_setspecific(), ACE_TSS_Cleanup::thread_detach_key(), and ACE_TSS_Cleanup::thread_use_key().


Variable Documentation

ACE_BEGIN_VERSIONED_NAMESPACE_DECL class ACE_Base_Thread_Adapter
 

Definition at line 1061 of file OS_NS_Thread.h.

ACE_BEGIN_VERSIONED_NAMESPACE_DECL typedef DWORD ACE_thread_t
 

Definition at line 61 of file OS_NS_Thread.h.

Referenced by ACE_TPQ_Entry::ACE_TPQ_Entry(), ACE_WFMO_Reactor::change_owner(), ACE_Thread_Manager::exit(), ACE_Recursive_Thread_Mutex::get_thread_id(), ACE_Thread_Manager::kill_thr(), ACE_WFMO_Reactor::new_owner(), ACE_OS::recursive_mutex_cond_unlock(), ACE_OS::recursive_mutex_lock(), ACE_OS::recursive_mutex_trylock(), ACE_OS::recursive_mutex_unlock(), ACE_Thread_Manager::remove_thr(), ACE_OS::sched_params(), ACE_Token::shared_acquire(), ACE_Thread_Manager::spawn_i(), ACE_Thread::spawn_n(), ACE_OS::thr_create(), and ACE_Thread_Manager::thread_desc_self().


Generated on Thu Nov 9 10:46:32 2006 for ACE by doxygen 1.3.6