Ticket #1326 (closed proposal: fixed)
Bindings for POSIX named semaphores and shared memory objects
| Reported by: | dfranke | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Not GHC |
| Component: | libraries/unix | Version: | 6.7 |
| Keywords: | Cc: | nonce+haskell.org@… | |
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | Difficulty: | Unknown | |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
I've written a patch for libraries/unix adding support for POSIX named semaphores and shared memory objects. It's a straightforward wrapper around the POSIX system calls, basically just converting between C types and Haskell types and closing semaphores when they get garbage-collected.
I don't plan to implement unnamed semaphores because Control.Concurrent already has perfectly good support for that. Named semaphores, on the other hand, are for IPC, and there's no other alternative if that's what the process on the other end is expecting.
The patch is here: http://www.haskell.org/pipermail/libraries/attachments/20070503/507f7e6c/attachment-0001.bin
