• Glenn Kasten's avatar
    Fix bugs in BufferQueue automated test and related · 4597a742
    Glenn Kasten authored
    Fix test bugs:
    Clean up the player, mixer, and the engine (must be done in that order).
    Re-enable 2 more tests; all 9 tests pass now.
    
    Fix engine bugs:
    IObject now has a de-init hook, which cleans up condition variable and mutex.
    Run the de-initializers in reverse order so that IObject de-init hook is run last.
    Replace the dedicated mEngine.mShutdownCond by the shared IObject condition variable.
    Forgot to iniitalize mShtudownAck.
    Unlocking the object mutex during CEngine_Destroy was bogus.
    
    Miscellaneous logging and debugging improvements:
    Track the source code location of the most recent mutex unlock.
    Add more trace log options for detailed leave reasons.
    Improve performance of trace log when disabled.
    Turn on assert checking.
    Check return value of pthread_cond_destroy and pthread_mutex_destroy.
    Add comment.
    Line length 100.
    
    Change-Id: I23b7b495d439894b2fd31295a38cb73ef7b6be2e
    4597a742
IEngine.c 23.3 KB