mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-27 16:28:34 +08:00
cpukit: Add and use Watchdog_Discipline.
Clock disciplines may be WATCHDOG_RELATIVE, WATCHDOG_ABSOLUTE, or WATCHDOG_NO_TIMEOUT. A discipline of WATCHDOG_RELATIVE with a timeout of WATCHDOG_NO_TIMEOUT is equivalent to a discipline of WATCHDOG_NO_TIMEOUT. updates #2732
This commit is contained in:
@@ -376,11 +376,11 @@ rtems_bsdnet_semaphore_obtain (void)
|
||||
rtems_panic ("rtems-net: network sema obtain: network not initialised\n");
|
||||
_Thread_queue_Context_initialize(&queue_context);
|
||||
_ISR_lock_ISR_disable(&queue_context.Lock_context);
|
||||
_Thread_queue_Context_set_no_timeout( &queue_context );
|
||||
status = _CORE_recursive_mutex_Seize (
|
||||
&the_networkSemaphore->Core_control.Mutex.Recursive,
|
||||
_Thread_Executing,
|
||||
true, /* wait */
|
||||
WATCHDOG_NO_TIMEOUT, /* forever */
|
||||
_CORE_recursive_mutex_Seize_nested,
|
||||
&queue_context
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user