Changeset 3842 for trunk/compiler
- Timestamp:
- 09/16/07 01:08:53 (16 months ago)
- Files:
-
- 1 modified
-
trunk/compiler/logtalk.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r3841 r3842 12364 12364 ( Option == ignore -> % don't bother reporting goal success, failure, or exception 12365 12365 thread_create(catch(Goal, _, true), _, [detached(true)]) 12366 ; Option = once(Tag) -> % make thread goal deterministic12366 ; Option = once(Tag) -> % make thread goal deterministic 12367 12367 thread_create('$lgt_mt_det_goal'(Queue, Goal, This, Self, Tag), _, [detached(true)]) 12368 ; Option = call(Tag) -> 12368 ; Option = call(Tag) -> % make thread goal non-deterministic 12369 12369 thread_create('$lgt_mt_non_det_goal'(Queue, Goal, This, Self, Tag), _, [detached(false)]) 12370 12370 ), … … 12373 12373 12374 12374 12375 % '$lgt_mt_det_goal'(+ message_queue, +callable, +object_identifier, +object_identifier, @nonvar)12375 % '$lgt_mt_det_goal'(+atom, +callable, +object_identifier, +object_identifier, @nonvar) 12376 12376 % 12377 12377 % processes a deterministic message received by an object's message queue … … 12393 12393 12394 12394 12395 % '$lgt_mt_non_det_goal'(+ message_queue, +callable, +object_identifier, +object_identifier, @nonvar)12395 % '$lgt_mt_non_det_goal'(+atom, +callable, +object_identifier, +object_identifier, @nonvar) 12396 12396 % 12397 12397 % processes a non-deterministic message received by an object's message queue … … 12482 12482 '$lgt_mt_get_reply'(Queue, Goal, Sender, This, Self, Tag) :- 12483 12483 ( % first check if there is a thread running for proving the goal before proceeding: 12484 \+ \+thread_peek_message(Queue, '$lgt_thread_id'(Type, Goal, This, Self, Tag, Id)) ->12484 thread_peek_message(Queue, '$lgt_thread_id'(Type, Goal, This, Self, Tag, Id)) -> 12485 12485 % answering thread exists; go ahead and retrieve the solution(s): 12486 thread_get_message(Queue, '$lgt_thread_id'(Type, _, This, Self, Tag, Id)),12486 thread_get_message(Queue, '$lgt_thread_id'(Type, Goal, This, Self, Tag, Id)), 12487 12487 call_cleanup( 12488 12488 '$lgt_mt_get_reply_aux'(Type, Queue, Goal, This, Self, Tag, Id),
