From 20a19f433956f063d8048f032aaf5dcce1d61e7c Mon Sep 17 00:00:00 2001 From: nodist Date: Thu, 11 Jun 2026 12:08:10 -0400 Subject: add algo for mutating shared object --- docs/application/type.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/application/type.md') diff --git a/docs/application/type.md b/docs/application/type.md index 03cc055..e462e6d 100644 --- a/docs/application/type.md +++ b/docs/application/type.md @@ -19,12 +19,11 @@ typedef enum : uint8_t { // ... } kpl_type_template; -typedef enum : uint8_t { +typedef enum { CONST = 1 << 0, EMPTY = 1 << 1, REF = 1 << 2, - SHARED = 1 << 3, - LOCK = 1 << 4 + SHARED = 1 << 3 } kpl_type_qualifiers; typedef union { @@ -33,7 +32,7 @@ typedef union { typedef struct { kpl_type_template template; - kpl_type_qualifiers qualifiers; + uint8_t qualifiers; uint16_t modifiers; _Atomic int32_t ref_count; kpl_type_ptr self, prev, next, parent; -- cgit v1.2.3