diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 17:34:49 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-03-20 17:34:49 +0100 |
commit | 9b05d1d26d358bf836a7ad0b23c244836cb30a06 (patch) | |
tree | 74d28be5dd16d4e139a630fd65e58df58de93ced /src/threading.cpp | |
parent | df1113151aff47bfd1b401bf8d06a3fe8f6b9115 (diff) | |
download | lanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.tar.gz lanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.tar.bz2 lanes-9b05d1d26d358bf836a7ad0b23c244836cb30a06.zip |
C++ migration: removed most typedef, removed uint_t
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 ); |