mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 11:00:20 +00:00
21 lines
604 B
C
21 lines
604 B
C
/*
|
|
* Copyright (C) the libgit2 contributors. All rights reserved.
|
|
*
|
|
* This file is part of libgit2, distributed under the GNU GPL v2 with
|
|
* a Linking Exception. For full terms see the included COPYING file.
|
|
*/
|
|
|
|
#ifndef INCLUDE_unix_pthread_h__
|
|
#define INCLUDE_unix_pthread_h__
|
|
|
|
typedef struct {
|
|
pthread_t thread;
|
|
} git_thread;
|
|
|
|
#define git_thread_create(git_thread_ptr, start_routine, arg) \
|
|
pthread_create(&(git_thread_ptr)->thread, NULL, start_routine, arg)
|
|
#define git_thread_join(git_thread_ptr, status) \
|
|
pthread_join((git_thread_ptr)->thread, status)
|
|
|
|
#endif /* INCLUDE_unix_pthread_h__ */
|