|
PatchworkOS
10941b4
A non-POSIX operating system.
|
Weak pointer structure. More...
#include <ref.h>
Data Fields | |
| ref_t * | ref |
| list_entry_t | entry |
| void(* | callback )(void *arg) |
| void * | arg |
| lock_t | lock |
Weak pointer structure.
Used to hold a non-owning reference to an object. If all strong references to the object are released, the weak pointer will be set to NULL and an optional callback will be invoked.
| list_entry_t weak_ptr_t::entry |