mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-05 18:33:28 +00:00
win32/pthread.c: Move to new error handling mechanism
This commit is contained in:
parent
7c8b597ec3
commit
a6d647d258
@ -33,7 +33,7 @@ int pthread_create(pthread_t *GIT_RESTRICT thread,
|
||||
{
|
||||
GIT_UNUSED_ARG(attr);
|
||||
*thread = (pthread_t) CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)start_routine, arg, 0, NULL);
|
||||
return *thread ? GIT_SUCCESS : GIT_EOSERR;
|
||||
return *thread ? GIT_SUCCESS : git__throw(GIT_EOSERR, "Failed to create pthread");
|
||||
}
|
||||
|
||||
int pthread_join(pthread_t thread, void **value_ptr)
|
||||
|
Loading…
Reference in New Issue
Block a user