Soletta™ Framework
Framework for making IoT devices

Full online documentation | C API Index
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
sol_reentrant Struct Reference

Structure containing the flags for safely freeing a larger structure. More...

#include <sol-reentrant.h>

Data Fields

bool delete_me
 Structure is stale and should be freed as soon as possible. More...
 
bool in_use
 Structure is in use. More...
 

Detailed Description

Structure containing the flags for safely freeing a larger structure.

This structure is meant to be used inside larger structures which are affected by calls to external callbacks that in turn end up calling library APIs. The possibility of a double free is particularly likely in such cases.

Examples:
/src/samples/design_patterns/stream_sample.c.

Field Documentation

bool sol_reentrant::delete_me

Structure is stale and should be freed as soon as possible.

Examples:
/src/samples/design_patterns/stream_sample.c.

Referenced by _inform_user(), my_stream_api_close(), and my_stream_api_feed().

bool sol_reentrant::in_use

Structure is in use.


The documentation for this struct was generated from the following file: