-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes: #4002 Fixes: #5384 Fixes: #6563 Refs: #2680 (comment) PR-URL: #6796 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Johan Bergström <[email protected]> Reviewed-By: Myles Borins <[email protected]>
- Loading branch information
Showing
55 changed files
with
962 additions
and
550 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -253,3 +253,7 @@ Robert Chiras <[email protected]> | |
Kári Tristan Helgason <[email protected]> | ||
Krishnaraj Bhat <[email protected]> | ||
Enno Boland <[email protected]> | ||
Michael Fero <[email protected]> | ||
Robert Jefe Lindstaedt <[email protected]> | ||
Myles Borins <[email protected]> | ||
Tony Theodore <[email protected]> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: v1.9.0.build{build} | ||
version: v1.9.1.build{build} | ||
|
||
install: | ||
- cinst -y nsis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
Copyright (c) 2016, Kari Tristan Helgason <[email protected]> | ||
Permission to use, copy, modify, and/or distribute this software for any | ||
purpose with or without fee is hereby granted, provided that the above | ||
copyright notice and this permission notice appear in all copies. | ||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
*/ | ||
|
||
#ifndef _UV_PTHREAD_BARRIER_ | ||
#define _UV_PTHREAD_BARRIER_ | ||
#include <errno.h> | ||
#include <pthread.h> | ||
#include <semaphore.h> /* sem_t */ | ||
|
||
#define PTHREAD_BARRIER_SERIAL_THREAD 0x12345 | ||
|
||
/* | ||
* To maintain ABI compatibility with | ||
* libuv v1.x struct is padded according | ||
* to target platform | ||
*/ | ||
#if defined(__ANDROID__) | ||
# define UV_BARRIER_STRUCT_PADDING \ | ||
sizeof(pthread_mutex_t) + \ | ||
sizeof(pthread_cond_t) + \ | ||
sizeof(unsigned int) - \ | ||
sizeof(void *) | ||
#elif defined(__APPLE__) | ||
# define UV_BARRIER_STRUCT_PADDING \ | ||
sizeof(pthread_mutex_t) + \ | ||
2 * sizeof(sem_t) + \ | ||
2 * sizeof(unsigned int) - \ | ||
sizeof(void *) | ||
#endif | ||
|
||
typedef struct { | ||
pthread_mutex_t mutex; | ||
pthread_cond_t cond; | ||
unsigned threshold; | ||
unsigned in; | ||
unsigned out; | ||
} _uv_barrier; | ||
|
||
typedef struct { | ||
_uv_barrier* b; | ||
char _pad[UV_BARRIER_STRUCT_PADDING]; | ||
} pthread_barrier_t; | ||
|
||
int pthread_barrier_init(pthread_barrier_t* barrier, | ||
const void* barrier_attr, | ||
unsigned count); | ||
|
||
int pthread_barrier_wait(pthread_barrier_t* barrier); | ||
int pthread_barrier_destroy(pthread_barrier_t *barrier); | ||
|
||
#endif /* _UV_PTHREAD_BARRIER_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.