summaryrefslogtreecommitdiff
path: root/xthread.h
diff options
context:
space:
mode:
authorroot <root>2008-05-12 16:19:42 +0000
committerroot <root>2008-05-12 16:19:42 +0000
commit3f2f4384d4d5e7db51d508b17c68045591e519a9 (patch)
tree3ee9f43df21271a807f0ce3bad17a445ef275fb2 /xthread.h
parent06f89d3d1a71d10755b66a4c6567412657400abb (diff)
*** empty log message ***
Diffstat (limited to 'xthread.h')
-rw-r--r--xthread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xthread.h b/xthread.h
index dfb8b0d..6b6ccbb 100644
--- a/xthread.h
+++ b/xthread.h
@@ -55,17 +55,17 @@ typedef pthread_t thread_t;
static int
thread_create (thread_t *tid, void *(*proc)(void *), void *arg)
{
- int res;
+ int retval;
pthread_attr_t attr;
pthread_attr_init (&attr);
pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED);
- res = pthread_create (tid, &attr, proc, arg) == 0;
+ retval = pthread_create (tid, &attr, proc, arg) == 0;
pthread_attr_destroy (&attr);
- return res;
+ return retval;
}
#define respipe_read(a,b,c) PerlSock_recv ((a), (b), (c), 0)