mirror of
https://github.com/boostorg/thread.git
synced 2026-02-11 00:02:12 +00:00
Don't include explicit instantiations in release builds (they increase the code size significantly).
[SVN r27887]
This commit is contained in:
@@ -1696,47 +1696,49 @@ read_write_lock_state::read_write_lock_state_enum timed_read_write_mutex::state(
|
||||
return m_impl.state();
|
||||
}
|
||||
|
||||
//Explicit instantiations of read/write locks to catch syntax errors in templates
|
||||
#if !defined(NDEBUG)
|
||||
//Explicit instantiations of read/write locks to catch syntax errors in templates
|
||||
|
||||
template class boost::detail::thread::scoped_read_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_write_lock<timed_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_write_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_try_read_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_write_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_try_read_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_write_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_timed_read_write_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_read_write_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_write_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_read_write_lock<timed_read_write_mutex>;
|
||||
|
||||
//Explicit instantiations of read locks to catch syntax errors in templates
|
||||
//Explicit instantiations of read locks to catch syntax errors in templates
|
||||
|
||||
template class boost::detail::thread::scoped_read_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_lock<timed_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_read_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_try_read_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_try_read_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_read_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_timed_read_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_read_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_read_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_read_lock<timed_read_write_mutex>;
|
||||
|
||||
//Explicit instantiations of write locks to catch syntax errors in templates
|
||||
//Explicit instantiations of write locks to catch syntax errors in templates
|
||||
|
||||
template class boost::detail::thread::scoped_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_write_lock<timed_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_write_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_try_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_write_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_try_write_lock<read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_try_write_lock<timed_read_write_mutex>;
|
||||
|
||||
//template class boost::detail::thread::scoped_timed_write_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_write_lock<timed_read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_write_lock<read_write_mutex>;
|
||||
//template class boost::detail::thread::scoped_timed_write_lock<try_read_write_mutex>;
|
||||
template class boost::detail::thread::scoped_timed_write_lock<timed_read_write_mutex>;
|
||||
#endif
|
||||
} // namespace boost
|
||||
|
||||
// Change Log:
|
||||
|
||||
Reference in New Issue
Block a user