mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-12-27 19:07:30 +08:00
update thread_strerror()
This commit is contained in:
parent
6403ef679a
commit
2359bad00c
1 changed files with 14 additions and 0 deletions
|
@ -29,6 +29,20 @@ const char *thread_strerror (int error)
|
|||
switch (error)
|
||||
{
|
||||
case THREAD_NOERROR: return (const char *) "No error";
|
||||
case THREAD_ERROR_CTX_IS_NULL: return (const char *) "CTX IS NULL";
|
||||
case THREAD_ERROR_CTX_IS_INIT: return (const char *) "CTX IS INIT";
|
||||
case THREAD_ERROR_TYPE_INVALID: return (const char *) "INVALID TYPE";
|
||||
case THREAD_ERROR_COUNT_INVALID: return (const char *) "INVALID THREAD COUNT";
|
||||
case THREAD_ERROR_ATTR_SETDETACH: return (const char *) "SETDETACHSTATE FAILED";
|
||||
case THREAD_ERROR_ATTR: return (const char *) "INIT ATTR FAILED";
|
||||
case THREAD_ERROR_MUTEXATTR: return (const char *) "INIT MUTEXATTR FAILED";
|
||||
case THREAD_ERROR_CREATE: return (const char *) "PTHREAD CREATE FAILED";
|
||||
case THREAD_ERROR_MUTEX: return (const char *) "INIT MUTEXFAILED";
|
||||
case THREAD_ERROR_COND: return (const char *) "INIT COND FAILED";
|
||||
case THREAD_ERROR_MUTEX_USLEEP: return (const char *) "INIT MUTEX USLEEP FAILED";
|
||||
case THREAD_ERROR_COND_USLEEP: return (const char *) "INIT COND USLEEP FAILED";
|
||||
case THREAD_ERROR_GENERIC: return (const char *) "GENERIC ERROR";
|
||||
case THREAD_ERROR_ALLOC: return (const char *) "ALLOC FAILED";
|
||||
}
|
||||
|
||||
return (const char *) "GENERIC";
|
||||
|
|
Loading…
Reference in a new issue