diff options
author | Vicent Marti <vicent@github.com> | 2014-07-03 15:30:38 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-07-03 15:30:38 +0200 |
commit | b0ed61f8227cb6fb937f68c9a6750851f3d0632f (patch) | |
tree | 0b8b3a39a36bddcc1b5505cb685eab54d77aae7f /src | |
parent | 193fe9cbbfd911e240f6d4ab7fed3ec96f35c657 (diff) | |
parent | 905fb5929bb8aa05b640d4dcb8fa611886cbe022 (diff) | |
download | libgit2-b0ed61f8227cb6fb937f68c9a6750851f3d0632f.tar.gz |
Merge pull request #2460 from libgit2/cmn/sched-yield
Move yield to the tests and enable for FreeBSD
Diffstat (limited to 'src')
-rw-r--r-- | src/thread-utils.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/thread-utils.h b/src/thread-utils.h index daec14eeb..5511a5117 100644 --- a/src/thread-utils.h +++ b/src/thread-utils.h @@ -53,12 +53,6 @@ typedef struct { #endif -#if defined(GIT_WIN32) -#define git_thread_yield() Sleep(0) -#else -#define git_thread_yield() sched_yield() -#endif - /* Pthreads Mutex */ #define git_mutex pthread_mutex_t #define git_mutex_init(a) pthread_mutex_init(a, NULL) @@ -186,7 +180,6 @@ GIT_INLINE(int64_t) git_atomic64_add(git_atomic64 *a, int64_t addend) #define git_thread unsigned int #define git_thread_create(thread, attr, start_routine, arg) 0 #define git_thread_join(id, status) (void)0 -#define git_thread_yield() (void)0 /* Pthreads Mutex */ #define git_mutex unsigned int |