cvs: pear /PECL/threads threads.c

From: Date: Fri, 09 Aug 2002 04:46:38 +0000
Subject: cvs: pear /PECL/threads threads.c
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5644@lists.php.net to get a copy of this message
alan_k Fri Aug 9 00:46:38 2002 EDT Modified files: /pear/PECL/threads threads.c Log: few cosmetic tidy ups Index: pear/PECL/threads/threads.c diff -u pear/PECL/threads/threads.c:1.4 pear/PECL/threads/threads.c:1.5 --- pear/PECL/threads/threads.c:1.4 Fri Aug 9 00:43:19 2002 +++ pear/PECL/threads/threads.c Fri Aug 9 00:46:38 2002 @@ -189,7 +189,7 @@ */ PHP_MINFO_FUNCTION(threads) { - php_info_print_table_start(); + php_info_print_table_start();+ pthread_t thread1; php_info_print_table_header(2, "Threads support", "enabled"); php_info_print_table_end(); @@ -371,8 +371,7 @@ int len; int threadid; - - pthread_t thread1; + THR_THREAD *thread = NULL; THR_SHARED_VARS *vars = THREADS_G(vars); @@ -397,11 +396,11 @@ thread->args[0] = script_file; thread->args[1] = (void *) THREADS_G(vars); THR_PRINTF(("value of args is %x\n", thread->args)); - // pthread_create( &thread1, NULL, (void *) phpthreads_include, (void *) script_file); + threadid = thr_thread_create(thread, (void *) phpthreads_include); /* we wait here until the child thread has copied the parent threads data */ - //printf("helo"); fflush(stdout); + THR_PRINTF(("done creating thread - waiting for all clear \n")) thr_wait_event(thread->start_event,THR_INFINITE);

« previous php.pear.cvs (#5644) next »