@@ -293,7 +293,6 @@ PH7_PRIVATE sxi32 SyMemBackendFree(SyMemBackend *pBackend, void *pChunk) {
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
#if defined(PH7_ENABLE_THREADS)
|
||||
PH7_PRIVATE sxi32 SyMemBackendMakeThreadSafe(SyMemBackend *pBackend, const SyMutexMethods *pMethods) {
|
||||
SyMutex *pMutex;
|
||||
#if defined(UNTRUST)
|
||||
@@ -325,7 +324,6 @@ PH7_PRIVATE sxi32 SyMemBackendDisbaleMutexing(SyMemBackend *pBackend) {
|
||||
pBackend->pMutex = 0;
|
||||
return SXRET_OK;
|
||||
}
|
||||
#endif
|
||||
/*
|
||||
* Memory pool allocator
|
||||
*/
|
||||
|
@@ -13,7 +13,6 @@
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if defined(PH7_ENABLE_THREADS)
|
||||
#if defined(__WINNT__)
|
||||
struct SyMutex {
|
||||
CRITICAL_SECTION sMutex;
|
||||
@@ -220,5 +219,4 @@ static const SyMutexMethods sDummyMutexMethods = {
|
||||
PH7_PRIVATE const SyMutexMethods *SyMutexExportMethods(void) {
|
||||
return &sDummyMutexMethods;
|
||||
}
|
||||
#endif /* __WINNT__ */
|
||||
#endif /* PH7_ENABLE_THREADS */
|
||||
#endif /* __WINNT__ */
|
Reference in New Issue
Block a user