- File:
-
- 1 edited
-
src/libcfa/concurrency/kernel_private.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/kernel_private.h
r4aa2fb2 rc81ebf9 22 22 23 23 #include "alarm.h" 24 25 #include "libhdr.h"26 24 27 25 //----------------------------------------------------------------------------- … … 68 66 69 67 static inline void enable_interrupts_noRF() { 70 __attribute__((unused))unsigned short prev = __atomic_fetch_add_2( &this_processor->disable_preempt_count, -1, __ATOMIC_SEQ_CST );71 verify( prev != (unsigned short) 0 );68 unsigned short prev = __atomic_fetch_add_2( &this_processor->disable_preempt_count, -1, __ATOMIC_SEQ_CST ); 69 assert( prev != (unsigned short) 0 ); 72 70 } 73 71 74 72 static inline void enable_interrupts() { 75 __attribute__((unused))unsigned short prev = __atomic_fetch_add_2( &this_processor->disable_preempt_count, -1, __ATOMIC_SEQ_CST );76 verify( prev != (unsigned short) 0 );73 unsigned short prev = __atomic_fetch_add_2( &this_processor->disable_preempt_count, -1, __ATOMIC_SEQ_CST ); 74 assert( prev != (unsigned short) 0 ); 77 75 if( prev == 1 && this_processor->pending_preemption ) { 78 76 ScheduleInternal( this_processor->current_thread );
Note:
See TracChangeset
for help on using the changeset viewer.