diff options
| author | Vicent Martà <vicent@github.com> | 2013-07-10 13:15:28 -0700 |
|---|---|---|
| committer | Vicent Martà <vicent@github.com> | 2013-07-10 13:15:28 -0700 |
| commit | bd679796a57a44270b1f1a4d50652367086f58a3 (patch) | |
| tree | 677bb10e844cc18726ae2720e49987bd7aedfef0 /src/thread-utils.h | |
| parent | c0e529f379ded1311c7d8caba4af7c20c540c987 (diff) | |
| parent | 125655fe3f0caf8b3d9fff2ec45ec694b34eed04 (diff) | |
| download | libgit2-bd679796a57a44270b1f1a4d50652367086f58a3.tar.gz | |
Merge pull request #1685 from arrbee/submodule-status-fixes
Improve submodules status data caching and compatibility
Diffstat (limited to 'src/thread-utils.h')
| -rw-r--r-- | src/thread-utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index f19a2ba2c..f8c4dc66d 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -43,6 +43,11 @@ GIT_INLINE(void) git_atomic_set(git_atomic *a, int val) a->val = val; } +GIT_INLINE(int) git_atomic_get(git_atomic *a) +{ + return (int)a->val; +} + #ifdef GIT_THREADS #define git_thread pthread_t |
