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

Macros

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

Functions

static K_THREAD_STACK_ARRAY_DEFINE (tstack, 3,(512+CONFIG_TEST_EXTRA_STACKSIZE))
 
void test_mheap_malloc_align4 (void)
 The test validates k_calloc() API. More...
 
static void tmheap_handler (void *p1, void *p2, void *p3)
 
void test_mheap_threadsafe (void)
 Verify alloc from multiple equal priority threads. More...
 

Variables

struct k_sem sync_sema
 
static struct k_thread tdata [3]
 
static voidblock [(1/64)]
 

Macro Definition Documentation

◆ BLOCK_SIZE

#define BLOCK_SIZE   16

◆ STACK_SIZE

#define STACK_SIZE   (512 + CONFIG_TEST_EXTRA_STACKSIZE)

◆ THREAD_NUM

#define THREAD_NUM   3

Function Documentation

◆ K_THREAD_STACK_ARRAY_DEFINE()

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

◆ tmheap_handler()

static void tmheap_handler ( void p1,
void p2,
void p3 
)
static

Variable Documentation

◆ block

void* block[(1/ 64)]
static

◆ sync_sema

struct k_sem sync_sema

◆ tdata

struct k_thread tdata[3]
static