Lock the stack debugging settings. Only the shared (global) settings are locked if necessary, per thread settings are local and safe to use. This lock is re entrant. @sa unlock_stack */
| 411 | @sa unlock_stack |
| 412 | */ |
| 413 | static void read_lock_stack(CODE_STATE *cs) |
| 414 | { |
| 415 | if (cs->stack == &init_settings) |
| 416 | { |
| 417 | if (++(cs->m_read_lock_count) == 1) |
| 418 | rw_rdlock(&THR_LOCK_init_settings); |
| 419 | } |
| 420 | } |
| 421 | |
| 422 | /** |
| 423 | Unlock the stack debugging settings. |
no outgoing calls
no test coverage detected