Changeset 25a97835 in rtems


Ignore:
Timestamp:
Apr 1, 2014, 6:31:16 AM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
57db5f1
Parents:
91e7b0c
git-author:
Sebastian Huber <sebastian.huber@…> (04/01/14 06:31:16)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/01/14 12:10:22)
Message:

ringbuf: Fix ISR lock initialization/destruction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/include/ringbuf.h

    r91e7b0c r25a97835  
    2727  do { \
    2828    (_buffer)->head = (_buffer)->tail = 0; \
     29    rtems_interrupt_lock_initialize(&(_buffer)->lock, "ring buffer"); \
     30  } while ( 0 )
     31
     32#define Ring_buffer_Destory( _buffer ) \
     33  do { \
     34    rtems_interrupt_lock_destroy(&(_buffer)->lock); \
    2935  } while ( 0 )
    3036
Note: See TracChangeset for help on using the changeset viewer.