fix bad initialization of mqs

This commit is contained in:
Vitor Santos Costa 2012-10-17 17:25:35 +01:00
parent e596cce6f5
commit 4da6733194

View File

@ -616,6 +616,10 @@ message_queue_create(Id) :-
fail. fail.
'$do_msg_queue_create'(_). '$do_msg_queue_create'(_).
'$create_thread_mq'(TId) :-
recorded('$queue',q(TId,_,_,_,_), R),
erase(R),
fail.
'$create_thread_mq'(TId) :- '$create_thread_mq'(TId) :-
\+ recorded('$queue',q(TId,_,_,_,_), _), \+ recorded('$queue',q(TId,_,_,_,_), _),
'$new_mutex'(Mutex), '$new_mutex'(Mutex),