From 759171e1fe3bb3e1aa3e6aae57623ce5203a7512 Mon Sep 17 00:00:00 2001 From: Gunnar Dalsnes Date: Thu, 20 Jan 2005 23:21:14 +0000 Subject: [PATCH] add readme with rtl restrictions info svn path=/trunk/; revision=13172 --- reactos/lib/rtl/readme.txt | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 reactos/lib/rtl/readme.txt diff --git a/reactos/lib/rtl/readme.txt b/reactos/lib/rtl/readme.txt new file mode 100644 index 00000000000..a4dc946d4d7 --- /dev/null +++ b/reactos/lib/rtl/readme.txt @@ -0,0 +1,5 @@ +RTL restrictions: + +ExAllocatePool (and friends) must be used exclusively. RtlAllocateHeap (and friends) must NOT be used! ExAllocatePool (and friends) translate to RtlAllocateHeap (and friends) in ntdll\rtl\libsupp.c. + +RtlEnterCriticalSection (and friends) must be used exclusively. ExAcquireFastMutex (and friends) must NOT be used! RtlEnterCriticalSection (and friends) translate to ExAcquireFastMutex (and friends) in ntoskrnl\rtl\libsupp. This means that RtlEnterCriticalSection (and friends) can NOT be used recursively in RTL. The reason for choosing RtlEnterCriticalSection (and friends) over ExAcquireFastMutex (and friends) is that the FAST_MUTEX struct is smaller than the RTL_CRITICAL_SECTION struct. \ No newline at end of file