Ticket #1326 (closed proposal: fixed)

Opened 6 years ago

Last modified 5 years ago

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

Change History

Changed 6 years ago by bos@…

  • status changed from new to closed
  • resolution set to fixed

This change is now in the darcs repo.

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple
Note: See TracTickets for help on using tickets.