Found 5 other functions taking a
critical_section
argument:
Enter a critical_section If the spin lock associated with this critical section is in use, then this method will block until it is released.
Initialise a critical_section structure assigning a specific spin lock number
De-Initialise a critical_section created by the critical_section_init method This method is only used to free the associated spin lock allocated via the critical_section_init method (it should not be used to de-initialize a spin lock created via critical_section_init_with_lock_num). After this call, the critical section is invalid
Test whether a critical_section has been initialized
Initialise a critical_section structure allowing the system to assign a spin lock number The critical section is initialized ready for use, and will use a (possibly shared) spin lock number assigned by the system. Note that in general it is unlikely that you would be nesting critical sections, however if you do so you *must* use critical_section_init_with_lock_num to ensure that the spin locks used are different.