diff options
Diffstat (limited to 'src/threading.cpp')
-rw-r--r-- | src/threading.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/threading.cpp b/src/threading.cpp index 636fe91..afeb184 100644 --- a/src/threading.cpp +++ b/src/threading.cpp | |||
@@ -594,7 +594,7 @@ bool THREAD_WAIT_IMPL( THREAD_T *ref, double secs) | |||
594 | # endif // pthread_attr_setschedpolicy() | 594 | # endif // pthread_attr_setschedpolicy() |
595 | # endif // defined(__MINGW32__) || defined(__MINGW64__) | 595 | # endif // defined(__MINGW32__) || defined(__MINGW64__) |
596 | 596 | ||
597 | static void _PT_FAIL( int rc, const char *name, const char *file, uint_t line ) { | 597 | static void _PT_FAIL( int rc, const char *name, const char *file, int line ) { |
598 | const char *why= (rc==EINVAL) ? "EINVAL" : | 598 | const char *why= (rc==EINVAL) ? "EINVAL" : |
599 | (rc==EBUSY) ? "EBUSY" : | 599 | (rc==EBUSY) ? "EBUSY" : |
600 | (rc==EPERM) ? "EPERM" : | 600 | (rc==EPERM) ? "EPERM" : |
@@ -847,7 +847,7 @@ void THREAD_CREATE( THREAD_T* ref, THREAD_RETURN_T (*func)( void*), void* data, | |||
847 | /* | 847 | /* |
848 | // Wait slightly if thread creation has exchausted the system | 848 | // Wait slightly if thread creation has exchausted the system |
849 | // | 849 | // |
850 | { uint_t retries; | 850 | { int retries; |
851 | for( retries=0; retries<THREAD_CREATE_RETRIES_MAX; retries++ ) { | 851 | for( retries=0; retries<THREAD_CREATE_RETRIES_MAX; retries++ ) { |
852 | 852 | ||
853 | int rc= pthread_create( ref, &a, func, data ); | 853 | int rc= pthread_create( ref, &a, func, data ); |