exceptions4c-pthreads 0.1
Multithreading exception handling for C
Loading...
Searching...
No Matches
exceptions4c-pthreads.h File Reference

Thread-safe extension for exceptions4c. More...

#include <exceptions4c.h>

Macros

#define EXCEPTIONS4C_PTHREADS   0
 Returns the major version number of this library.
 

Functions

struct e4c_context * e4c_pthreads_context_supplier (void)
 Supplies a thread-safe exception context.
 

Detailed Description

Thread-safe extension for exceptions4c.

This library allows you to safely and concurrently use exceptions4c on multithreaded programs that are based on POSIX threads.

This library consists of two files:

To use it in your project, include the header file in your source code files.

Thread-safe extension for exceptions4c.

And then link your program against the library code.

Important
Remember to also link your program against libraries exceptions4c and pthreads.
Version
0.1.0
Author
Guillermo Calvo
See also
For more information, visit the project on GitHub

Macro Definition Documentation

◆ EXCEPTIONS4C_PTHREADS

#define EXCEPTIONS4C_PTHREADS   0

Returns the major version number of this library.

Function Documentation

◆ e4c_pthreads_context_supplier()

struct e4c_context * e4c_pthreads_context_supplier ( void )

Supplies a thread-safe exception context.

Note
This function MUST be passed to e4c_set_context_supplier so each thread will get its own exception context.
Returns
The thread-safe exception context.