Opened 7 years ago

Closed 6 years ago

#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"));

}

}

Change History (2)

comment:1 by viboes, 6 years ago

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

comment:2 by viboes, 6 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.