Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
test_mslab_alloc_wait.c File Reference
#include <ztest.h>
#include "test_mslab.h"

Macros

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

Functions

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

Variables

static struct k_thread tdata [3]
 
static struct k_sem sync_sema
 
static voidblock_ok
 

Macro Definition Documentation

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

◆ 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_STACKSIZE)   
)
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