|
@@ -84,7 +84,7 @@
|
|
pthread_t
|
|
pthread_t
|
|
pte_threadReusePop (void)
|
|
pte_threadReusePop (void)
|
|
{
|
|
{
|
|
- pthread_t t = {NULL, 0};
|
|
|
|
|
|
+ pthread_t t = NULL;
|
|
|
|
|
|
|
|
|
|
pte_osMutexLock (pte_thread_reuse_lock);
|
|
pte_osMutexLock (pte_thread_reuse_lock);
|
|
@@ -122,7 +122,7 @@ pte_threadReusePop (void)
|
|
void
|
|
void
|
|
pte_threadReusePush (pthread_t thread)
|
|
pte_threadReusePush (pthread_t thread)
|
|
{
|
|
{
|
|
- pte_thread_t * tp = (pte_thread_t *) thread.p;
|
|
|
|
|
|
+ pte_thread_t * tp = (pte_thread_t *) thread;
|
|
pthread_t t;
|
|
pthread_t t;
|
|
|
|
|
|
|
|
|
|
@@ -134,13 +134,6 @@ pte_threadReusePush (pthread_t thread)
|
|
/* Must restore the original POSIX handle that we just wiped. */
|
|
/* Must restore the original POSIX handle that we just wiped. */
|
|
tp->ptHandle = t;
|
|
tp->ptHandle = t;
|
|
|
|
|
|
- /* Bump the reuse counter now */
|
|
|
|
-#ifdef PTE_THREAD_ID_REUSE_INCREMENT
|
|
|
|
- tp->ptHandle.x += PTE_THREAD_ID_REUSE_INCREMENT;
|
|
|
|
-#else
|
|
|
|
- tp->ptHandle.x++;
|
|
|
|
-#endif
|
|
|
|
-
|
|
|
|
tp->prevReuse = PTE_THREAD_REUSE_EMPTY;
|
|
tp->prevReuse = PTE_THREAD_REUSE_EMPTY;
|
|
|
|
|
|
if (PTE_THREAD_REUSE_EMPTY != pte_threadReuseBottom)
|
|
if (PTE_THREAD_REUSE_EMPTY != pte_threadReuseBottom)
|