Update release imports and GacGen metadata lookup

This commit is contained in:
vczh
2026-07-13 05:15:21 -07:00
parent ed7a643c3a
commit 4d5a6443d0
4 changed files with 193 additions and 71 deletions
+13 -4
View File
@@ -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)
{