Modify

Ticket #2955 (closed Patches: fixed)

Opened 5 years ago

Last modified 4 years ago

[patch] recursive mutex impossible if pthread_mutexattr_settype not defined

Reported by: Dustin Spicuzza <dustin@…> Owned by: anthonyw
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

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

Change History

Changed 5 years ago by Dustin Spicuzza <dustin@…>

comment:1 Changed 5 years ago by Dustin Spicuzza <dustin@…>

  • Type changed from Bugs to Patches

comment:2 Changed 4 years ago by viboes

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 Changed 4 years ago by anthonyw

  • Status changed from new to closed
  • Resolution set to fixed

Fixed on trunk.

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.