← Back to team overview

marionnet-dev team mailing list archive

[Branch ~marionnet-drivers/ocamlbricks/trunk] Rev 353: Improved ThreadExtra in order to have two additional parameters `?perform_when_suspended' and `?p...

 

------------------------------------------------------------
revno: 353
committer: Jean-Vincent Loddo <loddo@xxxxxxxxxxxxxxxxxxxx>
branch nick: ocamlbricks
timestamp: Thu 2013-02-14 15:04:02 +0100
message:
  Improved ThreadExtra in order to have two additional parameters `?perform_when_suspended' and `?perform_when_resumed' for the function `waitpid_thread'.  When one of these parameters is provided, the implementation switch to a function using our `waitpid-c-wrapper.c' instead of the standard `Unix.waitpid' tool (because the standard tool is not able to detect the transitions suspended->resumed).
  val waitpid_thread :
    ?killable:unit ->
    ?before_waiting:(pid:int -> unit) ->
    ?after_waiting:(pid:int -> Unix.process_status -> unit) ->
    ?perform_when_suspended:(pid:int -> unit) ->
    ?perform_when_resumed:(pid:int -> unit) ->
    ?fallback:(pid:int -> exn -> unit) ->
    ?do_not_kill_process_if_exit:unit ->
    unit -> (pid:int -> Thread.t)
modified:
  EXTRA/queueExtra.ml
  EXTRA/threadExtra.ml
  EXTRA/threadExtra.mli
  EXTRA/unixExtra.ml
  STRUCTURES/cloakroom.mli
  STRUCTURES/container.ml
  STRUCTURES/container.mli
  STRUCTURES/network.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