Zephyr Project API 3.7.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
test_mslab_alloc_wait.c File Reference
#include <zephyr/ztest.h>
#include "test_mslab.h"

Macros

#define THREAD_NUM   3
 
#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)
 

Functions

 K_MEM_SLAB_DEFINE (mslab1, 16, 3, 8)
 
static K_THREAD_STACK_ARRAY_DEFINE (tstack, 3,(512+CONFIG_TEST_EXTRA_STACK_SIZE))
 
void tmslab_alloc_wait_timeout (void *p1, void *p2, void *p3)
 
void tmslab_alloc_wait_ok (void *p1, void *p2, void *p3)
 
 ZTEST (mslab_concept, test_mslab_alloc_wait_prio)
 Verify alloc with multiple threads.
 

Variables

static struct k_thread tdata [3]
 
static struct k_sem sync_sema
 
static void * block_ok
 

Macro Definition Documentation

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACK_SIZE)

◆ THREAD_NUM

#define THREAD_NUM   3

Function Documentation

◆ K_MEM_SLAB_DEFINE()

K_MEM_SLAB_DEFINE ( mslab1  ,
16  ,
,
 
)

◆ K_THREAD_STACK_ARRAY_DEFINE()

static K_THREAD_STACK_ARRAY_DEFINE ( tstack  ,
,
(512+CONFIG_TEST_EXTRA_STACK_SIZE)   
)
static

◆ tmslab_alloc_wait_ok()

void tmslab_alloc_wait_ok ( void *  p1,
void *  p2,
void *  p3 
)

◆ tmslab_alloc_wait_timeout()

void tmslab_alloc_wait_timeout ( void *  p1,
void *  p2,
void *  p3 
)

Variable Documentation

◆ block_ok

void* block_ok
static

◆ sync_sema

struct k_sem sync_sema
static

◆ tdata

struct k_thread tdata[3]
static