From 51553d40f2a77db7b9d59e1aee2bfb1bd31af2ca Mon Sep 17 00:00:00 2001 From: vsc Date: Thu, 25 May 2006 17:35:49 +0000 Subject: [PATCH] more thread fixes git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@1655 b08c6af1-5177-4d33-ba66-4b1c6b8b522a --- C/threads.c | 2 +- changes-5.1.html | 1 + pl/threads.yap | 7 +------ 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/C/threads.c b/C/threads.c index f74249453..f0b2a0edf 100644 --- a/C/threads.c +++ b/C/threads.c @@ -294,7 +294,7 @@ Int Yap_thread_detach_engine(int wid) { pthread_mutex_lock(&(ThreadHandle[wid].tlock)); - if (ThreadHandle[wid].handle == worker_id) + if (ThreadHandle[wid].handle == pthread_self()) ThreadHandle[wid].handle = 0; ThreadHandle[wid].ref_count--; pthread_mutex_unlock(&(ThreadHandle[wid].tlock)); diff --git a/changes-5.1.html b/changes-5.1.html index 06419c9b9..828c6e35f 100644 --- a/changes-5.1.html +++ b/changes-5.1.html @@ -16,6 +16,7 @@

Yap-5.1.2: