summaryrefslogtreecommitdiff
path: root/ACE/docs/ACE-guidelines.html
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/docs/ACE-guidelines.html')
-rw-r--r--ACE/docs/ACE-guidelines.html21
1 files changed, 5 insertions, 16 deletions
diff --git a/ACE/docs/ACE-guidelines.html b/ACE/docs/ACE-guidelines.html
index 5d2950c23d5..2a39073badc 100644
--- a/ACE/docs/ACE-guidelines.html
+++ b/ACE/docs/ACE-guidelines.html
@@ -243,17 +243,9 @@ rather than
<strong><code>#if</code></strong> directive. For example,
<pre>
#if defined (ACE_HAS_THREADS)
- # if defined (ACE_HAS_STHREADS)
- # include /**/ &lt;synch.h&gt;
- # include /**/ &lt;thread.h&gt;
- # define ACE_SCOPE_PROCESS P_PID
- # define ACE_SCOPE_LWP P_LWPID
- # define ACE_SCOPE_THREAD (ACE_SCOPE_LWP + 1)
- # else
- # define ACE_SCOPE_PROCESS 0
- # define ACE_SCOPE_LWP 1
- # define ACE_SCOPE_THREAD 2
- # endif /* ACE_HAS_STHREADS */
+ # define ACE_SCOPE_PROCESS 0
+ # define ACE_SCOPE_LWP 1
+ # define ACE_SCOPE_THREAD 2
#endif /* ACE_HAS_THREADS */
</pre><p>
@@ -1190,9 +1182,7 @@ public:
the code is removed.<p>
<li>Be <strong>very</strong> careful with the code that you put
- in a signal handler. On Solaris, the man pages document systems
- calls as being Async-Signal-Safe if they can be called from signal
- handlers. In general, it's best to just set a flag in a signal
+ in a signal handler. In general, it's best to just set a flag in a signal
handler and take appropriate action elsewhere. It's also best
to avoid using signals, especially asynchronous signals.<p>
@@ -1207,8 +1197,7 @@ public:
This avoids leaving the temporary file even if the program crashes.<p>
<li>Be sure to specify the <code>THR_BOUND</code> thread creation
- flag for time-critical threads. This ensures that the thread competes
- for resources globally on Solaris. It is harmless on other platforms.<p>
+ flag for time-critical threads. It is harmless on other platforms.<p>
</ul>