acadia-newlib/newlib/libc/include/sys
Václav Haisman 813da84442 POSIX barrier implementation, take 3
The attached patch should address all of the review comments.

Modifed change log:

Newlib:

	* libc/include/sys/features.h (_POSIX_BARRIERS): Define for Cygwin.
	* libc/include/sys/types.h (pthread_barrier_t)
	(pthread_barrierattr_t): Do not define for Cygwin.

Cygwin:

	* common.din (pthread_barrierattr_init)
	(pthread_barrierattr_setpshared, pthread_barrierattr_getpshared)
	(pthread_barrierattr_destroy, pthread_barrier_init)
	(pthread_barrier_destroy, pthread_barrier_wait): Export.
	* include/cygwin/types.h (pthread_barrierattr_t)
	(pthread_barrier_t): Declare.
	* include/pthread.h (PTHREAD_BARRIER_SERIAL_THREAD)
	(pthread_barrierattr_init, pthread_barrierattr_setpshared)
	(pthread_barrierattr_getpshared, pthread_barrierattr_destroy)
	(pthread_barrier_init, pthread_barrier_destroy)
	(pthread_barrier_wait): Declare.
	* thread.h (PTHREAD_BARRIER_MAGIC)
	(PTHREAD_BARRIERATTR_MAGIC): Define.
	(class pthread_barrierattr, class pthread_barrier): Declare.
	* thread.cc (delete_and_clear): New local helper function.
	(class pthread_barrierattr, class pthread_barrier): Implement.
	* miscfuncs.h (likely, unlikely): New macros.

--
VH
2016-02-13 16:03:15 +01:00
..
_default_fcntl.h * libc/include/sys/_default_fcntl.h: Move all Cygwin-specific open 2014-11-25 11:53:00 +00:00
_intsup.h Extend _intsup.h to support 16-bit and 20-bit pointers. 2015-10-19 14:48:30 +01:00
_sigset.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
_stdint.h Add <sys/_stdint.h> for FreeBSD compatibility 2015-04-23 21:57:10 +02:00
_timespec.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
_timeval.h Merge parts of <sys/time.h> from FreeBSD 2015-03-13 13:17:34 +01:00
_types.h 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-10-15 17:38:32 +00:00
cdefs.h Synchronize with FreeBSD. 2015-10-13 17:50:30 -04:00
config.h Improve check for int32_t being long or int 2015-04-29 13:07:17 +02:00
custom_file.h
dir.h
dirent.h
errno.h * libc/include/sys/errno.h: Fix comments. 2014-07-14 13:40:17 +00:00
fcntl.h
features.h POSIX barrier implementation, take 3 2016-02-13 16:03:15 +01:00
file.h
iconvnls.h
lock.h
param.h Move fd_stuff from sys/types.h to sys/select.h 2015-12-07 16:28:22 +01:00
queue.h * libc/sys/rtems/sys/queue.h: Delete file. 2013-04-16 10:25:16 +00:00
reent.h Add _REENT_INIT_PTR_ZEROED() 2015-12-14 15:44:28 +01:00
resource.h 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com> 2014-11-24 14:12:32 +00:00
sched.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
select.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
signal.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
stat.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
stdio.h
string.h
syslimits.h
time.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
timeb.h
times.h Throughout, run newlib with -Wall -Werror option and fix bugs and 2012-08-08 11:04:18 +00:00
timespec.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
tree.h Import <sys/tree.h> from FreeBSD 2015-04-23 21:57:06 +02:00
types.h POSIX barrier implementation, take 3 2016-02-13 16:03:15 +01:00
unistd.h Allow sysconf to return CPU cache information 2015-08-29 09:16:47 +02:00
utime.h
wait.h Fix comment in sys/wait.h 2015-05-28 16:40:43 +02:00