CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
closure_private.h
1#pragma once
2
3#include "closure.h"
4#include <cx/thread/atomic.h>
5#include <cx/thread/rwlock.h>
6
7typedef struct Closure
8{
9 closureFunc func;
10 int nvars;
11 stvar cvars[];
12} Closure;
13
14typedef struct CChainNode CChainNode;
15typedef struct CChainNode
16{
17 CChainNode *prev;
18 closureFunc func;
19 intptr token;
20 atomic(uint32) refcount;
21 int nvars;
22 stvar cvars[];
23} CChainNode;
24
25intptr _closureCompare(_In_ closure cls1, _In_ closure cls2);
bool(* closureFunc)(stvlist *cvars, stvlist *args)
Definition closure.h:58
#define stvar(typen, val)
Definition stvar.h:153
Closures and callback chains aggregated header.
Reader-writer lock synchronization primitive.