cvs: TSRM(PHP_5_0) / TSRM.c

From: Date: Fri, 11 Mar 2005 11:13:03 +0000
Subject: cvs: TSRM(PHP_5_0) / TSRM.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-3482@lists.php.net to get a copy of this message
hyanantha Fri Mar 11 06:13:03 2005 EDT Modified files: (Branch: PHP_5_0) /TSRM TSRM.c Log: NetWare has a proper pthreads support http://cvs.php.net/diff.php/TSRM/TSRM.c?r1=1.61&r2=1.61.2.1&ty=u Index: TSRM/TSRM.c diff -u TSRM/TSRM.c:1.61 TSRM/TSRM.c:1.61.2.1 --- TSRM/TSRM.c:1.61 Sun May 23 12:05:09 2004 +++ TSRM/TSRM.c Fri Mar 11 06:13:03 2005 @@ -481,13 +481,6 @@ { #ifdef TSRM_WIN32 return GetCurrentThreadId(); -#elif defined(NETWARE) - /* There seems to be some problem with the LibC call: NXThreadGetId(). - * Due to this, the PHPMyAdmin application is abending in PHP calls. - * Used the call, kCurrentThread instead and it works fine. - */ -/* return NXThreadGetId(); */ - return kCurrentThread(); #elif defined(GNUPTH) return pth_self(); #elif defined(PTHREADS) @@ -508,24 +501,9 @@ TSRM_API MUTEX_T tsrm_mutex_alloc(void) { MUTEX_T mutexp; -#ifdef NETWARE -#ifndef USE_MPK - /* To use the Recursive Mutex Locking of LibC */ - long flags = NX_MUTEX_RECURSIVE; - NXHierarchy_t order = 0; - NX_LOCK_INFO_ALLOC (lockInfo, "PHP-TSRM", 0); -#endif -#endif - #ifdef TSRM_WIN32 mutexp = malloc(sizeof(CRITICAL_SECTION)); InitializeCriticalSection(mutexp); -#elif defined(NETWARE) -#ifdef USE_MPK - mutexp = kMutexAlloc((BYTE*)"PHP-TSRM"); -#else - mutexp = NXMutexAlloc(flags, order, &lockInfo); -#endif #elif defined(GNUPTH) mutexp = (MUTEX_T) malloc(sizeof(*mutexp)); pth_mutex_init(mutexp);

« previous php.zend-engine.cvs (#3482) next »