Ignore:
Timestamp:
Jul 28, 2011, 2:03:14 PM (13 years ago)
Author:
Christoph Mayer
Message:

-fixes on protlib for android

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/transport/tcpip/protlib/threads.h

    r9686 r9991  
    7171template <class T> void *thread_starter(void *thread_object) {
    7272
     73#ifdef PTHREAD_CANCEL_ENABLE
    7374        pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
     75#endif
     76#ifdef PTHREAD_CANCEL_DEFERRED
    7477        pthread_setcanceltype(PTHREAD_CANCEL_DEFERRED, NULL);
     78#endif
    7579
    7680        (static_cast<T*>(thread_object))->start_processing();
     
    537541                thread_object.unlock();
    538542                if (kill) {
     543
     544#ifdef PTHREAD_CANCEL_ENABLE
    539545                        for (unsigned i = 0; i < pthreads.size(); i++)
    540546                                pthread_cancel( pthreads[i] );
    541547
    542548                        sleepuntilstop();
     549#endif
    543550
    544551                        for (unsigned i = 0; i < pthreads.size(); i++)
Note: See TracChangeset for help on using the changeset viewer.