marionnet-dev team mailing list archive
-
marionnet-dev team
-
Mailing list archive
-
Message #00404
[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 279: Added module Stateful_modules.Process_private_thread_shared_variable in order to be able to defin...
------------------------------------------------------------
revno: 279
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Fri 2011-12-30 17:58:46 +0100
message:
Added module Stateful_modules.Process_private_thread_shared_variable in order to be able to define references shared by the threads of the same process but meaningless for forked processes (and their threads). Each forked process will regenerate the value stored in the reference.
An exemple of application of this kind of structure is in the module ThreadExtra for the implementation of create_killable. Here the table (array of semaphores) thread->signal is obviously meaningful only in the scope of a specific process.
modified:
STRUCTURES/stateful_modules.ml
STRUCTURES/stateful_modules.mli
--
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