Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_threads_suspend_resume.c File Reference
#include <zephyr/ztest.h>
#include "tests_thread_apis.h"

Functions

static void thread_entry (void *p1, void *p2, void *p3)
 
static void threads_suspend_resume (int prio)
 
void test_threads_suspend_resume_cooperative (void)
 Check the suspend and resume functionality in a cooperative thread.
 
void test_threads_suspend_resume_preemptible (void)
 Check the suspend and resume functionality in preemptive thread.
 
void suspend_myself (void *arg0, void *arg1, void *arg2)
 
void test_threads_suspend (void)
 Check that suspending a thread is a schedule point when called on the current thread.
 
void sleep_suspended (void *arg0, void *arg1, void *arg2)
 
void test_threads_suspend_timeout (void)
 Check that suspending a thread cancels a preexisting thread timeout.
 
void test_resume_unsuspend_thread (void)
 Check resuming a thread that is not suspended.
 

Variables

static ZTEST_BMEM int last_prio
 
static bool after_suspend
 

Function Documentation

◆ sleep_suspended()

void sleep_suspended ( void * arg0,
void * arg1,
void * arg2 )

◆ suspend_myself()

void suspend_myself ( void * arg0,
void * arg1,
void * arg2 )

◆ thread_entry()

static void thread_entry ( void * p1,
void * p2,
void * p3 )
static

◆ threads_suspend_resume()

static void threads_suspend_resume ( int prio)
static

Variable Documentation

◆ after_suspend

bool after_suspend
static

◆ last_prio

ZTEST_BMEM int last_prio
static