31#ifndef JUNO_MP_MTX_API_H
32#define JUNO_MP_MTX_API_H
62 ptMtx->ptApi->TryLock &&
#define JUNO_ASSERT_EXISTS(ptr)
Returns JUNO_STATUS_NULLPTR_ERROR if the expression is falsy.
Definition macros.h:50
#define JUNO_MODULE_EMPTY
Helper for module definitions with no additional members.
Definition module.h:86
#define JUNO_MODULE_ROOT(API_T,...)
Implement a module root struct containing ptApi and failure fields.
Definition module.h:126
#define JUNO_STATUS_SUCCESS
Operation completed successfully.
Definition status.h:56
int32_t JUNO_STATUS_T
Canonical status type for LibJuno functions.
Definition status.h:49
Common assertion and helper macros for LibJuno modules.
Module system and dependency injection primitives for LibJuno.
struct JUNO_MP_MTX_ROOT_TAG JUNO_MP_MTX_ROOT_T
Definition mtx_api.h:41
static JUNO_STATUS_T JunoMp_MtxVerify(const JUNO_MP_MTX_ROOT_T *ptMtx)
Verify a mutex instance and its API table.
Definition mtx_api.h:57
Status codes and failure-handling helpers for LibJuno.
JUNO_STATUS_T(* Lock)(JUNO_MP_MTX_ROOT_T *ptMtx)
Busy-wait until the lock is acquired.
Definition mtx_api.h:51
JUNO_STATUS_T(* Free)(JUNO_MP_MTX_ROOT_T *ptMtx)
Release the lock.
Definition mtx_api.h:53
JUNO_RESULT_BOOL_T(* TryLock)(JUNO_MP_MTX_ROOT_T *ptMtx)
Attempt to acquire the lock and return immediately.
Definition mtx_api.h:49
Common module result type aliases used throughout LibJuno.