mirror of
https://github.com/vczh-libraries/Release.git
synced 2026-08-18 01:44:28 +08:00
Update release imports and GacGen metadata lookup
This commit is contained in:
+13
-4
@@ -316,7 +316,7 @@ Licensed under https://github.com/vczh-libraries/License
|
||||
#include <fcntl.h>
|
||||
#include <semaphore.h>
|
||||
#include <errno.h>
|
||||
#if defined(__APPLE__) || defined(__APPLE_CC__)
|
||||
#if defined VCZH_APPLE
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
#endif
|
||||
|
||||
@@ -591,6 +591,13 @@ Semaphore
|
||||
sem_t semUnnamed;
|
||||
sem_t* semNamed = nullptr;
|
||||
};
|
||||
|
||||
#if defined VCZH_APPLE
|
||||
void FailOnUnnamedSemaphore()
|
||||
{
|
||||
CHECK_FAIL(L"vl::Semaphore::~Semaphore()#Unnamed semaphores are not supported on macOS.");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Semaphore::Semaphore()
|
||||
@@ -608,7 +615,9 @@ Semaphore
|
||||
}
|
||||
else
|
||||
{
|
||||
#if !defined(__APPLE__)
|
||||
#if defined VCZH_APPLE
|
||||
threading_internal::FailOnUnnamedSemaphore();
|
||||
#else
|
||||
sem_destroy(&internalData->semUnnamed);
|
||||
#endif
|
||||
}
|
||||
@@ -622,8 +631,8 @@ Semaphore
|
||||
if (initialCount > maxCount) return false;
|
||||
|
||||
internalData = new SemaphoreData;
|
||||
#if defined(__APPLE__)
|
||||
|
||||
#if defined VCZH_APPLE
|
||||
|
||||
AString auuid;
|
||||
if(name.Length() == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user