Changeset 7376

Show
Ignore:
Timestamp:
09/07/07 17:26:18
Author:
robert
Message:

Fixed warnings

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • OpenThreads/trunk/src/OpenThreads/pthreads/PThread.c++

    r7330 r7376  
    2222#include <unistd.h> 
    2323#include <pthread.h> 
    24 #include <assert.h> 
    2524 
    2625#if defined __linux || defined __sun || defined __APPLE__ 
     
    142141        // Set local storage so that Thread::CurrentThread() can return the right thing 
    143142        int status = pthread_setspecific(PThreadPrivateData::s_tls_key, thread); 
    144         assert(status == 0); 
     143        if (status) 
     144        { 
     145            printf("Error: pthread_setspecific(,) returned error status, status = %d\n",status); 
     146        } 
    145147 
    146148        pthread_cleanup_push(thread_cleanup_handler, &tcs); 
     
    427429    // Allocate a key to be used to access thread local storage 
    428430    int status = pthread_key_create(&PThreadPrivateData::s_tls_key, NULL); 
    429     assert(status == 0); 
     431    if (status) 
     432    { 
     433        printf("Error: pthread_key_create(,) returned error status, status = %d\n",status); 
     434    } 
    430435 
    431436#ifdef ALLOW_PRIORITY_SCHEDULING 
  • OpenThreads/trunk/src/OpenThreads/pthreads/PThreadCondition.c++

    r6584 r7376  
    2424#endif 
    2525 
    26 #include <assert.h> 
     26#include <stdio.h> 
     27 
    2728#include <OpenThreads/Condition> 
    2829#include "PThreadConditionPrivateData.h" 
     
    8687 
    8788    int status = pthread_cond_init( &pd->condition, NULL ); 
    88     assert(status == 0); 
     89    if (status) 
     90    { 
     91        printf("Error: pthread_cond_init(,) returned error status, status = %d\n",status); 
     92    } 
    8993 
    9094    _prvData = static_cast<void *>(pd); 
     
    104108 
    105109    int status = pthread_cond_destroy( &pd->condition ); 
    106     assert(status == 0); 
     110    if (status) 
     111    { 
     112        printf("Error: pthread_cond_destroy(,) returned error status, status = %d\n",status); 
     113    } 
    107114 
    108115    delete pd;