diff options
| author | Emilio Jesus Gallego Arias | 2019-01-24 14:25:09 +0100 |
|---|---|---|
| committer | Emilio Jesus Gallego Arias | 2019-01-24 14:25:09 +0100 |
| commit | ea6c157e7a47039d2c1505e896dbdd099a0da450 (patch) | |
| tree | 6bf2035eee82d12be341602edb3653991399cb07 /stm/workerPool.ml | |
| parent | f5241b99bb15f019eb629a7f24f2993f011e7e06 (diff) | |
| parent | aa4f1346e7cf2f8424259143d7aca6a883d3f9d2 (diff) | |
Merge PR #9372: [thread] protect threads against sigalrm
Reviewed-by: ejgallego
Diffstat (limited to 'stm/workerPool.ml')
| -rw-r--r-- | stm/workerPool.ml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stm/workerPool.ml b/stm/workerPool.ml index 0ff66686e4..2432e72c8a 100644 --- a/stm/workerPool.ml +++ b/stm/workerPool.ml @@ -86,7 +86,7 @@ let rec create_worker extra pool id = let exit () = cancel := true; cleanup pool; Thread.exit () in let cancelled () = !cancel in let cpanel = { exit; cancelled; extra } in - let manager = Thread.create (Model.manager cpanel) worker in + let manager = CThread.create (Model.manager cpanel) worker in { name; cancel; manager; process } and cleanup x = locking x begin fun { workers; count; extra_arg } -> |
