picotm
0.6.0
|
#include <assert.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stdint.h>
#include "compiler.h"
Data Structures | |
struct | picotm_ref16 |
struct | picotm_shared_ref16 |
Macros | |
#define | picotm_ref_init(self, count) |
#define | picotm_ref_up(self) |
#define | picotm_ref_down(self) |
#define | picotm_ref_count(self) |
#define picotm_ref_count | ( | self | ) |
Reads a reference counter's value.
self | reference counter |
#define picotm_ref_down | ( | self | ) |
Decrements a reference counter.
self | A reference counter |
#define picotm_ref_init | ( | self, | |
count | |||
) |
Initializes a reference counter with the given value.
self | A reference counter |
count | The initial reference count |
#define picotm_ref_up | ( | self | ) |
Increments a reference counter.
self | A reference counter |