summaryrefslogtreecommitdiff
path: root/toxcore/BUILD.bazel
diff options
context:
space:
mode:
authorsudden6 <sudden6@gmx.at>2019-09-06 15:12:20 +0200
committersudden6 <sudden6@gmx.at>2019-09-06 23:10:39 +0200
commit571897cecbdc96bc48e2778e06b9102bdca4839a (patch)
tree2dd4b11a43ef8963671a7e01783b1c474f43d993 /toxcore/BUILD.bazel
parent3d21e66a8a7bf06507f8e62a5cc78f89f86adbc7 (diff)
fix concurrency issues in mono_time
Since mono_time is accessed from the main thread as well as the toxav thread it is needed to properly lock time updates.
Diffstat (limited to 'toxcore/BUILD.bazel')
-rw-r--r--toxcore/BUILD.bazel5
1 files changed, 4 insertions, 1 deletions
diff --git a/toxcore/BUILD.bazel b/toxcore/BUILD.bazel
index b21ec4a6..fc28a333 100644
--- a/toxcore/BUILD.bazel
+++ b/toxcore/BUILD.bazel
@@ -63,7 +63,10 @@ cc_library(
63 name = "mono_time", 63 name = "mono_time",
64 srcs = ["mono_time.c"], 64 srcs = ["mono_time.c"],
65 hdrs = ["mono_time.h"], 65 hdrs = ["mono_time.h"],
66 deps = [":ccompat"], 66 deps = [
67 ":ccompat",
68 "@pthread",
69 ],
67) 70)
68 71
69cc_test( 72cc_test(