RTEMS  5.1
Data Fields
rtems_capture_record_lock_context Struct Reference

Capture record lock context. More...

#include <capture.h>

Data Fields

rtems_interrupt_lock_context lock_context
 
rtems_interrupt_locklock
 

Detailed Description

Capture record lock context.

This structure is used to lock a per CPU buffer when opeining recording. The per CPU buffer is held locked until the record close is called. Locking masks interrupts so use this lock only when needed and do not hold it for long.

The lock first masks the CPU interrupt before taking the interrupt lock. This stops a thread context taking the lock and then an interrupt on the same CPU attempting to take the lock so creating a deadlock.


The documentation for this struct was generated from the following file: