summaryrefslogtreecommitdiff
path: root/ACE/ace/Base_Thread_Adapter.inl
blob: 667b9f50a3a76852d0a3569ef5811df90bdef0f9 (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
// -*- C++ -*-
ACE_BEGIN_VERSIONED_NAMESPACE_DECL

ACE_INLINE long
ACE_OS_Thread_Descriptor::flags () const
{
  return flags_;
}

ACE_INLINE
ACE_OS_Thread_Descriptor::ACE_OS_Thread_Descriptor (long flags)
  : flags_ (flags)
{
}

ACE_INLINE void
ACE_Base_Thread_Adapter::set_log_msg_hooks (
    ACE_INIT_LOG_MSG_HOOK init_hook,
    ACE_INHERIT_LOG_MSG_HOOK inherit_hook,
    ACE_CLOSE_LOG_MSG_HOOK close_hook,
    ACE_SYNC_LOG_MSG_HOOK sync_hook,
    ACE_THR_DESC_LOG_MSG_HOOK thr_desc_hook)
{
  ACE_Base_Thread_Adapter::init_log_msg_hook_      = init_hook;
  ACE_Base_Thread_Adapter::inherit_log_msg_hook_   = inherit_hook;
  ACE_Base_Thread_Adapter::close_log_msg_hook_     = close_hook;
  ACE_Base_Thread_Adapter::sync_log_msg_hook_      = sync_hook;
  ACE_Base_Thread_Adapter::thr_desc_log_msg_hook_  = thr_desc_hook;
}

ACE_INLINE ACE_THR_C_FUNC
ACE_Base_Thread_Adapter::entry_point ()
{
  return this->entry_point_;
}

#ifdef ACE_USES_GPROF
ACE_INLINE itimerval*
ACE_Base_Thread_Adapter::timerval ()
{
  return &(this->itimer_);
}
#endif // ACE_USES_GPROF

ACE_END_VERSIONED_NAMESPACE_DECL