mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-29 06:33:22 +00:00
1. Fixed compiler warning
2. Updated chain, so that thread id is saved at creation time 3. Updated Make_AbsolutePath() per IOActive
This commit is contained in:
@@ -1925,6 +1925,12 @@ void *ILibCreateChainEx(int extraMemorySize)
|
||||
|
||||
RetVal->Timer = ILibCreateLifeTime(RetVal);
|
||||
|
||||
#if defined(WIN32)
|
||||
RetVal->ChainThreadID = GetCurrentThreadId();
|
||||
#else
|
||||
RetVal->ChainThreadID = pthread_self();
|
||||
#endif
|
||||
|
||||
return RetVal;
|
||||
}
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ uint16_t ILib_atoi2_uint16(const char *instr, size_t instrLen);
|
||||
#define ILib_atoi_uint64(pval, instr, instrLen) ILib_atoi_uint64_ex(pval, instr, instrLen, UINT64_MAX)
|
||||
#define ILib_atoi_int64(pval, instr, instrLen) ILib_atoi_uint64_ex(pval, instr, instrLen, INT64_MAX)
|
||||
#define ILib_atoi_uint32(pval, instr, instrLen) ILib_atoi_uint32_ex(pval, instr, instrLen, UINT32_MAX)
|
||||
#define ILib_atoi_int32(pval, instr, instrLen) ILib_atoi_uint32_ex(pval, instr, instrLen, INT32_MAX)
|
||||
#define ILib_atoi_int32(pval, instr, instrLen) ILib_atoi_uint32_ex((uint32_t*)pval, instr, instrLen, INT32_MAX)
|
||||
#define ILib_atoi_uint16(pval, instr, instrLen) ILib_atoi_uint16_ex(pval, instr, instrLen, UINT16_MAX)
|
||||
#define ILib_atoi_int16(pval, instr, instrLen) ILib_atoi_uint16_ex(pval, instr, instrLen, INT16_MAX)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user