Changeset 86b365b for lib


Ignore:
Timestamp:
06/19/18 16:47:48 (2 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
cachetimestamps, develop, master, rc-4.0.4, ringdecrementfix, ringperformance
Children:
f9df20e
Parents:
5577521
Message:

Fix deadlock if you call trace_pstop on a stopped trace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    rc22a4bb r86b365b  
    20052005        }
    20062006        if (!libtrace->started || libtrace->state != STATE_RUNNING) {
     2007                ASSERT_RET(pthread_mutex_unlock(&libtrace->libtrace_lock), == 0);
    20072008                trace_set_err(libtrace,TRACE_ERR_BAD_STATE, "You must call trace_start() before calling trace_ppause()");
    20082009                return -1;
Note: See TracChangeset for help on using the changeset viewer.