// MINITHREADS #include #include #include namespace stdext { namespace threads { _CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_new(void *& _Ptr) { _Ptr = new CRITICAL_SECTION; __crtInitializeCriticalSectionEx(static_cast(_Ptr), 4000, 0); } _CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_delete(void * _Ptr) { DeleteCriticalSection(static_cast(_Ptr)); delete static_cast(_Ptr); } _CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_lock(void * _Ptr) { EnterCriticalSection(static_cast(_Ptr)); } _CRTIMP2_PURE void __CLRCALL_PURE_OR_CDECL _Mtx_unlock(void * _Ptr) { LeaveCriticalSection(static_cast(_Ptr)); } } // namespace threads } // namespace stdext /* * Copyright (c) by P.J. Plauger. All rights reserved. * Consult your license regarding permissions and restrictions. V6.50:0009 */