From f23d4706169d68d3c4e90b297650f89c272716f4 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 9 Jun 2016 11:33:15 -0400 Subject: 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 --- cpukit/rtems/src/msgqreceive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/rtems/src/msgqreceive.c') diff --git a/cpukit/rtems/src/msgqreceive.c b/cpukit/rtems/src/msgqreceive.c index 75c15beb6a..d509faf988 100644 --- a/cpukit/rtems/src/msgqreceive.c +++ b/cpukit/rtems/src/msgqreceive.c @@ -61,13 +61,13 @@ rtems_status_code rtems_message_queue_receive( ); executing = _Thread_Executing; + _Thread_queue_Context_set_relative_timeout( &queue_context, timeout ); status = _CORE_message_queue_Seize( &the_message_queue->message_queue, executing, buffer, size, !_Options_Is_no_wait( option_set ), - timeout, &queue_context ); return _Status_Get( status ); -- cgit v1.2.3