Changeset 9c46b65


Ignore:
Timestamp:
12/07/18 15:31:11 (23 months ago)
Author:
Shane Alcock <salcock@…>
Branches:
develop
Children:
1dc033a
Parents:
5097267
git-author:
Shane Alcock <salcock@…> (12/07/18 15:29:45)
git-committer:
Shane Alcock <salcock@…> (12/07/18 15:31:11)
Message:

Fix bug where trace_pstop had stopped working as intended.

Bug crept in as part of Jacob's assert fixes (and also slipped
past my review).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/trace_parallel.c

    r2193905 r9c46b65  
    410410                        return &libtrace->perpkt_threads[i];
    411411        }
    412         pthread_exit(NULL);
     412        return NULL;
    413413}
    414414
     
    653653        if (!t) {
    654654                trace_set_err(trace, TRACE_ERR_THREAD, "Unable to get thread table in perpkt_threads_entry()");
     655                ASSERT_RET(pthread_mutex_unlock(&trace->libtrace_lock), == 0);
    655656                pthread_exit(NULL);
    656657        }
     
    22312232        // Now send a message asking the threads to stop
    22322233        // This will be retrieved before trying to read another packet
    2233 
    22342234        message.code = MESSAGE_DO_STOP;
    22352235        trace_message_perpkts(libtrace, &message);
Note: See TracChangeset for help on using the changeset viewer.