|
From: <sv...@va...> - 2008-11-27 17:48:42
|
Author: bart
Date: 2008-11-27 17:48:36 +0000 (Thu, 27 Nov 2008)
New Revision: 8802
Log:
Simplified test program.
Modified:
trunk/drd/tests/linuxthreads_det.c
Modified: trunk/drd/tests/linuxthreads_det.c
===================================================================
--- trunk/drd/tests/linuxthreads_det.c 2008-11-22 23:35:32 UTC (rev 8801)
+++ trunk/drd/tests/linuxthreads_det.c 2008-11-27 17:48:36 UTC (rev 8802)
@@ -8,7 +8,6 @@
#include <unistd.h>
-static sem_t s_sem;
static pid_t s_main_thread_pid;
@@ -22,7 +21,6 @@
{
write(STDOUT_FILENO, "Detected LinuxThreads as POSIX threads implementation.\n", 55);
}
- sem_post(&s_sem);
return 0;
}
@@ -31,10 +29,7 @@
pthread_t threadid;
s_main_thread_pid = getpid();
- sem_init(&s_sem, 0, 0);
pthread_create(&threadid, 0, thread_func, 0);
- sem_wait(&s_sem);
pthread_join(threadid, 0);
- sem_destroy(&s_sem);
return 0;
}
|