| To: | yyyyyyyyyyyyyyy@xxxxxxxxxxxxx |
|---|---|
| Subject: | Re: Defect in XSH pthread_attr_getguardsize (revised 1) |
| From: | Loic Domaigne <yyyyyyyy@xxxxxxx> |
| Date: | Wed, 30 Jul 2003 17:55:41 +0200 (MEST) |
Retrieving the guardsize attribute.
This example shows how to obtain the guardsize attribute of a thread
attribute object.
#include <pthread.h>
pthread_attr_t thread_attr; /* thread attribute object */
size_t guardsize; /* guardsize */
int rc;
...
rc = pthread_attr_getguardsize (&thread_attr, &guardsize);
if (rc != 0) {
/* handle error */
}
else {
if (guardsize > 0) {
/* a guard area of at least guardsize bytes is provided */
}
else {
/* no guard area not provided */
}
}
--
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Defect in XSH pthread_attr_getdetachstate (revised 1), Loic Domaigne |
|---|---|
| Next by Date: | Re: Defect in XSH atan2 (revised 1), Clive D.W. Feather |
| Previous by Thread: | Re: Defect in XSH pthread_attr_getdetachstate (revised 1), Loic Domaigne |
| Next by Thread: | Defect in XSH tmpnam, don.cragun |
| Indexes: | [Date] [Thread] [All Lists] |