summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2005-02-21 10:05:07 (GMT)
committerAnantha Kesari H Y <hyanantha@php.net>2005-02-21 10:05:07 (GMT)
commite32ae40fbfe04cf9af60dac33d868614acbec9d4 (patch)
tree08eab6539bf8c6a9aec6b1d677685cdd640acb9b /TSRM
parentba980b12add494a450b3f436011988f30a45be24 (diff)
downloadphp-e32ae40fbfe04cf9af60dac33d868614acbec9d4.tar.gz
NetWare has pthreads implementation
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/TSRM.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index db47adf..1e510d1 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -471,13 +471,6 @@ TSRM_API THREAD_T tsrm_thread_id(void)
{
#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)
@@ -498,24 +491,9 @@ TSRM_API THREAD_T tsrm_thread_id(void)
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);