some minor fixes

This commit is contained in:
Anton Autushka 2018-02-06 15:37:14 +03:00
parent bf86466be1
commit 7d7872cb7b
3 changed files with 4 additions and 1 deletions

View file

@ -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 )

View file

@ -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;

View file

@ -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;