Opened 9 years ago

Closed 9 years ago

#8797 closed Patches (wontfix)

semaphores for boost.thread

Reported by: timblechmann Owned by: viboes
Milestone: To Be Determined Component: thread
Version: Boost 1.55.0 Severity: Not Applicable
Keywords: Cc:

Description

this patch adds support for semaphores to boost.thread.

in addition to an emulation with mutex/condition_variable/counter, it provides native implementations for win32, posix and dispatch semaphores. the reason for adding native implementations is performance: they perform much better than an emulation. on osx, i have seen a speedup of 80 in microbenchmarks with strong contention.

Attachments (1)

0001-thread-semaphore-implementation.patch​ (23.6 KB ) - added by timblechmann 9 years ago.

Download all attachments as: .zip

Change History (4)

by timblechmann, 9 years ago

comment:1 by viboes, 9 years ago

Owner: changed from Anthony Williams to viboes
Status: new → assigned

comment:2 by viboes, 9 years ago

Severity: Problem → Not Applicable

comment:3 by viboes, 9 years ago

Resolution: → wontfix
Status: assigned → closed

As you will add it to Boost.Sync, I close the ticket.

Note: See TracTickets for help on using tickets.