summaryrefslogtreecommitdiff
path: root/dht/src/Control
diff options
context:
space:
mode:
Diffstat (limited to 'dht/src/Control')
-rw-r--r--dht/src/Control/Concurrent/ThreadUtil.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/dht/src/Control/Concurrent/ThreadUtil.hs b/dht/src/Control/Concurrent/ThreadUtil.hs
index 2888e899..a258d933 100644
--- a/dht/src/Control/Concurrent/ThreadUtil.hs
+++ b/dht/src/Control/Concurrent/ThreadUtil.hs
@@ -21,4 +21,11 @@ forkLabeled lbl action = do
21 labelThread t lbl 21 labelThread t lbl
22 return t 22 return t
23{-# INLINE forkLabeled #-} 23{-# INLINE forkLabeled #-}
24
25forkOSLabeled :: String -> IO () -> IO ThreadId
26forkOSLabeled lbl action = do
27 t <- forkOS action
28 labelThread t lbl
29 return t
30{-# INLINE forkOSLabeled #-}
24#endif 31#endif