portable semaphore implementation

Bug #804559 reported by Gennady Proskurin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
AirDC++
Confirmed
Low
Unassigned
DC++
Confirmed
Low
Jacek Sieka
StrongDC++
Confirmed
Undecided
Unassigned

Bug Description

Portable "class Semaphore" implementation using boost::interprocess_semaphore.
Patch attached.

Tags: core
Revision history for this message
Gennady Proskurin (gpr) wrote :
eMTee (realprogger)
Changed in dcplusplus:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Jacek Sieka (arnetheduck)
Big Muscle (bigmuscle)
Changed in strongdc:
status: New → Confirmed
Revision history for this message
Gennady Proskurin (gpr) wrote :

btw, boost1.47 has issues with interprocess_semaphore
see boost bug https://svn.boost.org/trac/boost/ticket/4524
I think my patch should not be merged until boost bug 4524 is resolved

I keep an eye on bug 4524 and will drop a note here

Revision history for this message
Big Muscle (bigmuscle) wrote :

Thanks for your information. I also suggest dropping Semaphore class completely and use boost semaphore directly (of course, when the bug is fixed).

Fredrik Ullner (ullner)
tags: added: core
maksis (maksis)
Changed in airdcpp:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
Fredrik Ullner (ullner) wrote :

As far as I can tell, this is fixed in newer version of Boost (that we are using). I propose we finally apply this patch (included is a diff against the current code base).

Changed in dcplusplus:
status: Confirmed → In Progress
Fredrik Ullner (ullner)
Changed in dcplusplus:
status: In Progress → Fix Committed
Revision history for this message
poy (poy) wrote :

the patch submitted by Gennady <https://svn.boost.org/trac/boost/attachment/ticket/4524/ipc_sem.patch> has not been applied in the version of boost currently in the DC++ repo.

at a first glance at the file in question, this might affect Windows builds (Windows-specific stuff is within an elif-guard that comes after the if-guard changed by the patch).

Revision history for this message
Fredrik Ullner (ullner) wrote :

Fair enough, I've reverted the code in DC++ (hopefully didn't break the repository).

Changed in dcplusplus:
status: Fix Committed → In Progress
status: In Progress → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.