Changeset 1091

Show
Ignore:
Timestamp:
05/02/08 11:57:48 (4 years ago)
Author:
ppalmers
Message:

fixes #99

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libutil/PosixThread.cpp

    r969 r1091  
    7979    bool res = true; 
    8080    while (obj->fRunning && res) { 
     81//         debugOutput( DEBUG_LEVEL_VERBOSE, "ThreadHandler: run %p\n", obj); 
    8182        res = runnable->Execute(); 
    82         //pthread_testcancel(); 
     83        pthread_testcancel(); 
    8384    } 
    8485 
     
    152153{ 
    153154    if (fThread) { // If thread has been started 
    154         debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Kill %p\n", this); 
     155        debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Kill %p (thread: %p)\n", this, fThread); 
    155156        void* status; 
    156157        pthread_cancel(fThread); 
    157158        pthread_join(fThread, &status); 
    158         debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Killed %p\n", this); 
     159        debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Killed %p (thread: %p)\n", this, fThread); 
    159160        return 0; 
    160161    } else { 
     
    166167{ 
    167168    if (fThread) { // If thread has been started 
    168         debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Stop %p\n", this); 
     169        debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Stop %p (thread: %p)\n", this, fThread); 
    169170        void* status; 
    170171        fRunning = false; // Request for the thread to stop 
    171172        pthread_join(fThread, &status); 
    172         debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Stopped %p\n", this); 
     173        debugOutput( DEBUG_LEVEL_VERBOSE, "PosixThread::Stopped %p (thread: %p)\n", this, fThread); 
    173174        return 0; 
    174175    } else {