summaryrefslogtreecommitdiff
path: root/src/runtime.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-12-05 15:49:30 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2020-12-06 01:08:22 +0000
commitab7729747c4b55a93b8973e94429c747fe274529 (patch)
treeba172660033ac8be2d3f4933355a832365e2c183 /src/runtime.c
parent37763d38fbf5db932be8d6a0070255839e7719ca (diff)
downloadlibgit2-ab7729747c4b55a93b8973e94429c747fe274529.tar.gz
threads: give atomic functions the git_atomic prefix
Diffstat (limited to 'src/runtime.c')
-rw-r--r--src/runtime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime.c b/src/runtime.c
index 3fd064982..b61c3c4ba 100644
--- a/src/runtime.c
+++ b/src/runtime.c
@@ -37,7 +37,7 @@ static void shutdown_common(void)
for (pos = git_atomic32_get(&shutdown_callback_count);
pos > 0;
pos = git_atomic32_dec(&shutdown_callback_count)) {
- cb = git__swap(shutdown_callback[pos - 1], NULL);
+ cb = git_atomic_swap(shutdown_callback[pos - 1], NULL);
if (cb != NULL)
cb();