Files
ports/net/spserver/files/patch-testthreadpool.cpp
T
Vanilla I. Shu 7da4bc2cb5 Upgrade to 0.8.
2007-08-24 07:53:47 +00:00

16 lines
492 B
C++

--- spserver/testthreadpool.cpp.orig Wed Aug 22 22:04:05 2007
+++ spserver/testthreadpool.cpp Thu Aug 23 07:34:14 2007
@@ -16,10 +16,10 @@
void threadFunc( void *arg )
{
- int seconds = (int) arg;
+ int seconds = atoi ((char *) arg);
fprintf( stdout, " in threadFunc %d\n", seconds );
- fprintf( stdout, " thread#%ld\n", pthread_self() );
+ fprintf( stdout, " thread#%ld\n", (long int)pthread_self() );
sleep( seconds );
fprintf( stdout, " done threadFunc %d\n", seconds);
}