Fixing compilation errors related to MUSL libc
Fix Musl libc NULL errors and unsupported pthread funcs for compatibility.
Also ensures cleanup and error handling irrespective of CPU affinity override.
Fix submitted by github dev - AngryLoki
https://github.com/ROCm/ROCR-Runtime/issues/181
Change-Id: Ia487315e504112be5d3370756f23f6e23b9ae4be
[ROCm/ROCR-Runtime commit: bc9cac97fe]
Cette révision appartient à :
révisé par
Shweta Khatri
Parent
ed7cdb88e4
révision
4f4d215196
@@ -58,7 +58,7 @@ template <uint64_t code, bool multiProcess = false> class Check final {
|
||||
Check(const Check&) { object_ = uintptr_t(this) ^ uintptr_t(code); }
|
||||
Check(Check&&) { object_ = uintptr_t(this) ^ uintptr_t(code); }
|
||||
|
||||
~Check() { object_ = NULL; }
|
||||
~Check() { object_ = uintptr_t(NULL); }
|
||||
|
||||
const Check& operator=(Check&& rhs) { return *this; }
|
||||
const Check& operator=(const Check& rhs) { return *this; }
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur