From 80fca28198170a84cde8a9f22dbb29c3a6c4123b Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Sat, 13 Jun 2015 15:29:04 +0200 Subject: score: Add _Watchdog_Preinitialize() Add an assert to ensure that the watchdog is the proper state for a _Watchdog_Initialize(). This helps to detect invalid initializations which may lead to a corrupt watchdog chain. --- cpukit/posix/src/pthread.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cpukit/posix/src/pthread.c') diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 6395ec0ebd..02d86b5536 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -241,6 +241,7 @@ static bool _POSIX_Threads_Create_extension( _Thread_queue_Initialize( &api->Join_List, THREAD_QUEUE_DISCIPLINE_FIFO ); + _Watchdog_Preinitialize( &api->Sporadic_timer ); _Watchdog_Initialize( &api->Sporadic_timer, _POSIX_Threads_Sporadic_budget_TSR, -- cgit v1.2.3