diff options
author | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:08:43 +0900 |
---|---|---|
committer | Martin Sustrik <sustrik@250bpm.com> | 2012-02-16 10:08:43 +0900 |
commit | 1e01248efc113cc9389f795157400a634730823e (patch) | |
tree | 5b321c0540001b6c1f7eab659e4cefec67dfcf96 /src/ctx.hpp | |
parent | a55458399f9e54f8384eda174d405ee85d490c45 (diff) |
XS_CTX_REENTRANT option added
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/ctx.hpp')
-rw-r--r-- | src/ctx.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ctx.hpp b/src/ctx.hpp index 56b5d4c..e912443 100644 --- a/src/ctx.hpp +++ b/src/ctx.hpp @@ -100,6 +100,9 @@ namespace xs void log (int sid_, const char *text_); void publish_logs (const char *text_); + // True, if API is expected to be reentrant. + bool is_reentrant (); + enum { term_tid = 0, reaper_tid = 1 @@ -173,6 +176,9 @@ namespace xs // Number of I/O threads to launch. uint32_t io_thread_count; + // True, if API is expected to be reentrant. + bool reentrant; + // Synchronisation of access to context options. mutex_t opt_sync; |