Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_threads_suspend_resume.c File Reference
#include <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. More...
 
void test_threads_suspend_resume_preemptible (void)
 Check the suspend and resume functionality in preemptive thread. More...
 
void suspend_myself (void *arg0, void *arg1, void *arg2)
 
void test_threads_suspend (void)
 Check that k_thread_suspend() is a schedule point when called on the current thread. More...
 
void sleep_suspended (void *arg0, void *arg1, void *arg2)
 
void test_threads_suspend_timeout (void)
 Check that k_thread_suspend() cancels a preexisting thread timeout. More...
 
void test_resume_unsuspend_thread (void)
 Check resume an unsuspend thread. More...
 

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