Overview
Features
Download
Documentation
Community
Add-Ons & Services

Named Semaphore

Discussion of ideas for features and new projects based on POCO.

Named Semaphore

Postby wbuckel » 12 Jan 2013, 00:08

Poco has NamedMutex and NamedEvent. Why is there no NamedSemaphore?

I would like to implement a shared memory circular buffer for data exchange between 2 processes (producer - consumer). NamedSemaphores would be perfect for keeping track of available data elements for reading by the consumer. AFAIK named semaphores exist on both Windows and POSIX.
wbuckel
 
Posts: 1
Joined: 12 Jan 2013, 00:03

Re: Named Semaphore

Postby alex » 12 Jan 2013, 16:29

wbuckel wrote:I would like to implement a shared memory circular buffer for data exchange between 2 processes (producer - consumer).

In regards to circular buffer, I'd like to turn current Poco::FIFOBuffer into circular buffer with several strategies in regards to buffer growth:

* fixed (no implicit growth, stop receiving data when full)
* expand (when full, allow implicit growth to accommodate new data)
* overwrite (keep fixed size, when full new data overwrites data at the beginning).

As for the contribution, clone pocoproject/poco repo on GitHub and send a pull request against develop branch when you have the patches ready.
alex
 
Posts: 1104
Joined: 11 Jul 2006, 16:27
Location: United_States


Return to Wishlist

Who is online

Users browsing this forum: No registered users and 1 guest