mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
add readme with rtl restrictions info
svn path=/trunk/; revision=13172
This commit is contained in:
parent
1e2f8e3c7d
commit
759171e1fe
1 changed files with 5 additions and 0 deletions
5
reactos/lib/rtl/readme.txt
Normal file
5
reactos/lib/rtl/readme.txt
Normal file
|
@ -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.
|
Loading…
Reference in a new issue