[ros-diffs] [gdalsnes] 13172: add readme with rtl restrictions info
gdalsnes at svn.reactos.com
gdalsnes at svn.reactos.com
Fri Jan 21 00:21:16 CET 2005
add readme with rtl restrictions info
Added: trunk/reactos/lib/rtl/readme.txt
_____
Added: trunk/reactos/lib/rtl/readme.txt
--- trunk/reactos/lib/rtl/readme.txt 2005-01-20 23:05:36 UTC (rev
13171)
+++ trunk/reactos/lib/rtl/readme.txt 2005-01-20 23:21:14 UTC (rev
13172)
@@ -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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050121/fe7d2076/attachment.html
More information about the Ros-diffs
mailing list