← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 282: Major changes in ThreadExtra: we can now easily generate killable threads, tutored (killable) for...

 

------------------------------------------------------------
revno: 282
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Sat 2011-12-31 14:34:59 +0100
message:
  Major changes in ThreadExtra: we can now easily generate killable threads, tutored (killable) forks, and we can easily kill threads by id or kill all running killable threads. We can also build tutors (see network.ml for an example). 
  Note that, when it is loaded, the library install two global Pervasives.at_exit thunks in order to execute this sequence of actions exiting the process:
  1) kill all running killable sub-threads and wait 0.5 seconds
  2) perform all thunks left in the at_exit structure by itself or by sub-threads
  Note also that, when a tutor thread is launched, it defines a thunk for killing its tutored process at exiting.
modified:
  EXTRA/limbo.ml
  EXTRA/threadExtra.ml
  EXTRA/threadExtra.mli
  Makefile.d/test.sh


--
lp:ocamlbricks
https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk

Your team marionnet-dev is subscribed to branch lp:ocamlbricks.
To unsubscribe from this branch go to https://code.launchpad.net/~marionnet-drivers/ocamlbricks/trunk/+edit-subscription