Changeset 4314
- Timestamp:
- 06/15/08 04:41:56 (2 months ago)
- Location:
- trunk
- Files:
-
- 3 modified
-
compiler/logtalk.pl (modified) (2 diffs)
-
examples/threads/mtbatch/mtbatch.lgt (modified) (1 diff)
-
RELEASE_NOTES.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/compiler/logtalk.pl
r4312 r4314 13374 13374 ( catch(thread_peek_message(Id, '$lgt_master'), _, fail) -> 13375 13375 catch(thread_send_message(Id, '$lgt_status'(_, terminate)), _, true) 13376 ; catch(thread_signal(Id, '$lgt_mt_thread_abort'), _, true)13376 ; catch(thread_signal(Id, throw('$lgt_terminated')), _, true) 13377 13377 ), 13378 13378 '$lgt_mt_threaded_call_abort'(Ids). … … 13393 13393 catch(thread_join(Id, _), _, true), 13394 13394 '$lgt_mt_threaded_call_join'(Ids, Results). 13395 13396 13397 '$lgt_mt_thread_abort' :-13398 mutex_unlock_all,13399 throw('$lgt_terminated').13400 13395 13401 13396 -
trunk/examples/threads/mtbatch/mtbatch.lgt
r4313 r4314 3 3 4 4 :- info([ 5 version is 1. 0,5 version is 1.1, 6 6 author is 'Paulo Moura', 7 date is 2008/0 3/04,7 date is 2008/06/14, 8 8 comment is 'Multi-threading benchmarks.', 9 9 parameters is ['Prolog'- 'Prolog backend compiler. Supported compilers are SWI-Prolog (swi), YAP (yap), and XSB (xsb).']]). -
trunk/RELEASE_NOTES.txt
r4311 r4314 26 26 threaded/1 when canceling individual threads. The first bug resulted from 27 27 out-of-order thread status messages. The second bug resulted from a leak 28 of thread results between calls to the threaded/1 predicate. 28 of thread results between calls to the threaded/1 predicate. Changed the 29 thread cancellation process to not automatically releasing any locks, 30 leaving that task to a catcher associated to the thread goal. 29 31 30 32 Added a new default compiler option, multifile_directive, to all config
