Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Thread_Hook.h
blob0d342a3f43a2e45621f80c2a0f2634b175f410e1
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Thread_Hook.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
8 */
9 //=============================================================================
11 #ifndef ACE_THREAD_HOOK_H
12 #define ACE_THREAD_HOOK_H
13 #include /**/ "ace/pre.h"
15 #include /**/ "ace/config-all.h"
17 #if !defined (ACE_LACKS_PRAGMA_ONCE)
18 # pragma once
19 #endif /* ACE_LACKS_PRAGMA_ONCE */
21 #include /**/ "ace/ACE_export.h"
23 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
25 /**
26 * @class ACE_Thread_Hook
28 * @brief This class makes it possible to provide user-defined "start"
29 * hooks that are called before the thread entry point function
30 * is invoked.
32 class ACE_Export ACE_Thread_Hook
34 public:
35 /// Default constructor
36 ACE_Thread_Hook ();
38 /// Destructor.
39 virtual ~ACE_Thread_Hook ();
41 /**
42 * This method can be overridden in a subclass to customize this
43 * pre-function call "hook" invocation that can perform
44 * initialization processing before the thread entry point @a func
45 * method is called back. The @a func and @a arg passed into the
46 * start hook are the same as those passed by the application that
47 * spawned the thread.
49 virtual ACE_THR_FUNC_RETURN start (ACE_THR_FUNC func,
50 void *arg);
52 /// Sets the system wide thread hook, returns the previous thread
53 /// hook or 0 if none is set.
54 static ACE_Thread_Hook *thread_hook (ACE_Thread_Hook *hook);
56 /// Returns the current system thread hook.
57 static ACE_Thread_Hook *thread_hook ();
60 ACE_END_VERSIONED_NAMESPACE_DECL
62 #include /**/ "ace/post.h"
63 #endif /* ACE_THREAD_HOOK_H */