Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
concurrency.c File Reference
#include <stdint.h>
#include <zephyr/kernel.h>
#include <zephyr/ztest.h>
#include <zephyr/random/random.h>
#include <zephyr/logging/log.h>

Macros

#define DUMMY_DATA_SIZE   16
 

Functions

 LOG_MODULE_REGISTER (k_pipe_concurrency, LOG_LEVEL_DBG)
 
 ZTEST_SUITE (k_pipe_concurrency, NULL, NULL, NULL, NULL, NULL)
 
static K_THREAD_STACK_DEFINE (stack, 1024)
 
static void thread_close (void *arg1, void *arg2, void *arg3)
 
static void thread_reset (void *arg1, void *arg2, void *arg3)
 
static void thread_write (void *arg1, void *arg2, void *arg3)
 
static void thread_read (void *arg1, void *arg2, void *arg3)
 
void test_close_on_read (void)
 
void test_close_on_write (void)
 
void test_reset_on_read (void)
 
void test_reset_on_write (void)
 
void test_partial_read (void)
 
void test_partial_write (void)
 

Variables

static const int partial_wait_time = 2000
 
static struct k_thread thread
 
static struct k_pipe pipe
 

Macro Definition Documentation

◆ DUMMY_DATA_SIZE

#define DUMMY_DATA_SIZE   16

Function Documentation

◆ K_THREAD_STACK_DEFINE()

static K_THREAD_STACK_DEFINE ( stack ,
1024  )
static

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( k_pipe_concurrency ,
LOG_LEVEL_DBG  )

◆ test_close_on_read()

void test_close_on_read ( void )

◆ test_close_on_write()

void test_close_on_write ( void )

◆ test_partial_read()

void test_partial_read ( void )

◆ test_partial_write()

void test_partial_write ( void )

◆ test_reset_on_read()

void test_reset_on_read ( void )

◆ test_reset_on_write()

void test_reset_on_write ( void )

◆ thread_close()

static void thread_close ( void * arg1,
void * arg2,
void * arg3 )
static

◆ thread_read()

static void thread_read ( void * arg1,
void * arg2,
void * arg3 )
static

◆ thread_reset()

static void thread_reset ( void * arg1,
void * arg2,
void * arg3 )
static

◆ thread_write()

static void thread_write ( void * arg1,
void * arg2,
void * arg3 )
static

◆ ZTEST_SUITE()

ZTEST_SUITE ( k_pipe_concurrency ,
NULL ,
NULL ,
NULL ,
NULL ,
NULL  )

Variable Documentation

◆ partial_wait_time

const int partial_wait_time = 2000
static

◆ pipe

struct k_pipe pipe
static

◆ thread

struct k_thread thread
static