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 à :
Shweta.Khatri
2024-03-26 12:40:55 -04:00
révisé par Shweta Khatri
Parent ed7cdb88e4
révision 4f4d215196
5 fichiers modifiés avec 35 ajouts et 15 suppressions
+1 -1
Voir le fichier
@@ -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; }