Zephyr Project API 3.7.0-rc1
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)
 
 ZTEST (threads_lifecycle_1cpu, test_threads_suspend_resume_cooperative)
 Check the suspend and resume functionality in a cooperative thread.
 
 ZTEST_USER (threads_lifecycle, test_threads_suspend_resume_preemptible)
 Check the suspend and resume functionality in preemptive thread.
 
void suspend_myself (void *arg0, void *arg1, void *arg2)
 
 ZTEST (threads_lifecycle, test_threads_suspend)
 Check that k_thread_suspend() is a schedule point when called on the current thread.
 
void sleep_suspended (void *arg0, void *arg1, void *arg2)
 
 ZTEST (threads_lifecycle, test_threads_suspend_timeout)
 Check that k_thread_suspend() cancels a preexisting thread timeout.
 
 ZTEST (threads_lifecycle, test_resume_unsuspend_thread)
 Check resume an unsuspend thread.
 

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