summaryrefslogtreecommitdiff
path: root/toxcore/tox.api.h
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2020-03-06 12:10:47 +0000
committeriphydf <iphydf@users.noreply.github.com>2020-03-11 15:21:43 +0000
commit64bf3695d99688ad0967bdba2207c46845a3e8c2 (patch)
tree11ad17034eeef07285eb3a2cbc7e2137136783a4 /toxcore/tox.api.h
parentfd5511ad37b0a845645d944bf64e94abc3dc53a3 (diff)
Add a mutex lock/unlock inside every public API function.
Diffstat (limited to 'toxcore/tox.api.h')
-rw-r--r--toxcore/tox.api.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index e73402de..f9712b7e 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -623,6 +623,21 @@ static class options {
623 */ 623 */
624 any user_data; 624 any user_data;
625 } 625 }
626
627 /**
628 * These options are experimental, so avoid writing code that depends on
629 * them. Options marked "experimental" may change their behaviour or go away
630 * entirely in the future, or may be renamed to something non-experimental
631 * if they become part of the supported API.
632 */
633 namespace experimental {
634 /**
635 * Make public API functions thread-safe using a per-instance lock.
636 *
637 * Default: false.
638 */
639 bool thread_safety;
640 }
626 } 641 }
627 642
628 643