diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-18 16:47:21 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-11-19 08:44:24 +0100 |
commit | 98bb4ecdffc4df503d4703d1f66120892b74449e (patch) | |
tree | ee57ab784d650db5f072ff0b12c4efedd1c036ce | |
parent | b71bb9ca9873c5e5c2b4b195d9d65c4972b047f2 (diff) |
testsuites/validation/tx-support.h
-rw-r--r-- | testsuites/validation/tx-support.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuites/validation/tx-support.h b/testsuites/validation/tx-support.h index 62adb930d0..010fae2180 100644 --- a/testsuites/validation/tx-support.h +++ b/testsuites/validation/tx-support.h @@ -547,7 +547,15 @@ void StartDelayThreadDispatch( uint32_t cpu_index ); void StopDelayThreadDispatch( uint32_t cpu_index ); +bool AreInterruptsEnabled( void ); + +bool IsWhiteSpaceOnly( const char *s ); + +bool IsEqualIgnoreWhiteSpace( const char *a, const char *b ); + #if defined(RTEMS_SMP) +bool TicketLockIsAvailable( const SMP_ticket_lock_Control *lock ); + void TicketLockWaitForOwned( const SMP_ticket_lock_Control *lock ); void TicketLockWaitForOthers( @@ -555,6 +563,11 @@ void TicketLockWaitForOthers( unsigned int others ); +static inline bool ISRLockIsAvailable( const ISR_lock_Control *lock ) +{ + return TicketLockIsAvailable( &lock->Lock.Ticket_lock ); +} + static inline void ISRLockWaitForOwned( const ISR_lock_Control *lock ) { TicketLockWaitForOwned( &lock->Lock.Ticket_lock ); |