Opened 14 years ago

Closed 12 years ago

#2955 closed Patches (fixed)

[patch] recursive mutex impossible if pthread_mutexattr_settype not defined

Reported by: Dustin Spicuzza <dustin@…> Owned by: Anthony Williams
Milestone: Boost 1.39.0 Component: thread
Version: Boost 1.38.0 Severity: Showstopper
Keywords: Cc:

Description

This patch makes recursive_mutex not exist if pthread_mutexattr_settype isn't defined (since it is impossible to make a recursive mutex without it).

A platform that has this problem is vxWorks.

Attachments (1)

boost_1_38_0.thread.vxworks.patch (709 bytes ) - added by Dustin Spicuzza <dustin@…> 14 years ago.

Download all attachments as: .zip

Change History (4)

by Dustin Spicuzza <dustin@…>, 14 years ago

comment:1 by Dustin Spicuzza <dustin@…>, 14 years ago

Type: BugsPatches

comment:2 by viboes, 13 years ago

There is also a possible emulation based on the win32 recursive_mutex emulation. Anthony, what do you think about the emulation? If not provided, it would be good to add a warning, "recursive_mutex not supported on this platform".

comment:3 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed

Fixed on trunk.

Note: See TracTickets for help on using tickets.