Updates from BitShares FC #22
3 changed files with 4 additions and 1 deletions
|
|
@ -4,6 +4,8 @@
|
|||
PROJECT( fc )
|
||||
CMAKE_MINIMUM_REQUIRED( VERSION 2.8.12 )
|
||||
|
||||
add_compile_options(-std=c++14)
|
||||
|
||||
MESSAGE(STATUS "Configuring project fc located in: ${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
SET( CMAKE_AUTOMOC OFF )
|
||||
|
||||
|
|
|
|||
|
|
@ -328,6 +328,7 @@ public:
|
|||
|
||||
static int count() { return impl::type_info<Types...>::count; }
|
||||
void set_which( tag_type w ) {
|
||||
FC_ASSERT( w >= 0 );
|
||||
FC_ASSERT( w < count() );
|
||||
this->~static_variant();
|
||||
_tag = w;
|
||||
|
|
|
|||
|
|
@ -15,9 +15,9 @@ namespace fc {
|
|||
mutex::~mutex() {
|
||||
if( m_blist )
|
||||
{
|
||||
// context* c = m_blist;
|
||||
fc::thread::current().debug("~mutex");
|
||||
#if 0
|
||||
context* c = m_blist;
|
||||
while( c ) {
|
||||
// elog( "still blocking on context %p (%s)", m_blist, (m_blist->cur_task ? m_blist->cur_task->get_desc() : "no current task") );
|
||||
c = c->next_blocked_mutex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue