Difference between revisions of "KRecursiveLock"

From 3dbrew
Jump to navigation Jump to search
(Created page with "Category:Kernel objects Size : 0x8 bytes Used to implement critical sections, etc. This class has 3 methods : <code>Lock</code>, <code>Unlock</code>, and <code>LocalUnlo...")
 
(No difference)

Latest revision as of 03:42, 4 December 2016

Size : 0x8 bytes

Used to implement critical sections, etc.

This class has 3 methods : Lock, Unlock, and LocalUnlock. The only difference between the two last methods is that the last one never triggers SGI #8 (rescheduling signal, associated to KScheduler objects)

Lock / Unlock blocks are always used with the same object.

Lock / LocalUnlock are always used with the associated attribute of the timer/watchdog timer interrupt object.

Offset Type Description
0x0 KThread * Thread owning the lock
0x4 s32 Lock count