only evaluate lists with a single character.
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2214 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
This commit is contained in:
@@ -337,7 +337,8 @@ thread_detach(Id) :-
|
||||
( recorded('$thread_exit_status', [Id0|_], _) ->
|
||||
'$erase_thread_info'(Id0),
|
||||
'$thread_destroy'(Id0)
|
||||
; true
|
||||
;
|
||||
'$thread_unlock'(Id0)
|
||||
).
|
||||
|
||||
thread_exit(Term) :-
|
||||
@@ -637,6 +638,7 @@ message_queue_destroy(Queue) :-
|
||||
recorded('$queue',q(Queue,Mutex,Cond,_,QKey),R), !,
|
||||
erase(R),
|
||||
'$cond_destroy'(Cond),
|
||||
write(Queue:Mutex),nl,
|
||||
'$destroy_mutex'(Mutex),
|
||||
'$unlock_mutex'(QMutex),
|
||||
'$clean_mqueue'(QKey).
|
||||
|
||||
Reference in New Issue
Block a user