Modify

#12102 closed Bugs (fixed)

condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled

Reported by: mark.benvenuto@… Owned by: viboes
Milestone: Boost 1.62.0 Component: thread
Version: Boost 1.60.0 Severity: Regression
Keywords: Cc:

Description

condition_variable_fwd.hpp fails to compile when BOOST_THREAD_PROVIDES_INTERRUPTIONS is disabled because of an undefined variable.

Code in question: #if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS

int res=pthread_mutex_init(&internal_mutex,NULL); if(res) {

boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in pthread_mutex_init"));

}

#endif

res = detail::monotonic_pthread_cond_init(cond); if (res) {

#if defined BOOST_THREAD_PROVIDES_INTERRUPTIONS

BOOST_VERIFY(!pthread_mutex_destroy(&internal_mutex));

#endif

boost::throw_exception(thread_resource_error(res, "boost::condition_variable::condition_variable() constructor failed in detail::monotonic_pthread_cond_init"));

}

}

Attachments (0)

Change History (2)

comment:1 Changed 14 months ago by viboes

Milestone: To Be DeterminedBoost 1.62.0
Owner: changed from Anthony Williams to viboes
Status: newassigned

comment:2 Changed 13 months ago by viboes

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain viboes.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.