diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-05 16:05:20 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-08 08:44:14 +0100 |
commit | 788fa865fbfa3340d07f72e407fdbe7a5c79ce93 (patch) | |
tree | 2e7f84cb1ce3a1c27f1ccf8f729c1ebdc79e3292 /cpukit/include/rtems/test.h | |
parent | validation: Add tests for rtems_build_name() (diff) | |
download | rtems-788fa865fbfa3340d07f72e407fdbe7a5c79ce93.tar.bz2 |
libtest: Add T_get_thread_timer_state()
Diffstat (limited to 'cpukit/include/rtems/test.h')
-rw-r--r-- | cpukit/include/rtems/test.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/cpukit/include/rtems/test.h b/cpukit/include/rtems/test.h index f96a5a6892..b42bf5f058 100644 --- a/cpukit/include/rtems/test.h +++ b/cpukit/include/rtems/test.h @@ -1,7 +1,7 @@ /* * SPDX-License-Identifier: BSD-2-Clause * - * Copyright (C) 2017, 2020 embedded brains GmbH + * Copyright (C) 2017, 2021 embedded brains GmbH * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -2503,6 +2503,15 @@ void T_check_posix_shms(T_event, const char *); void T_check_posix_threads(T_event, const char *); void T_check_posix_timers(T_event, const char *); + +typedef enum { + T_THREAD_TIMER_NO_THREAD, + T_THREAD_TIMER_SCHEDULED, + T_THREAD_TIMER_PENDING, + T_THREAD_TIMER_INACTIVE +} T_thread_timer_state; + +T_thread_timer_state T_get_thread_timer_state(uint32_t); #endif /* __rtems__ */ /** |