From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97587 invoked by alias); 30 Nov 2017 08:50:23 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 97567 invoked by uid 10080); 30 Nov 2017 08:50:23 -0000 Date: Thu, 30 Nov 2017 08:50:00 -0000 Message-ID: <20171130085023.97565.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: Add semaphore functions X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: 5a2ab9d55eb0cb018fc7095422581af9fdca0275 X-Git-Newrev: dadc9e7e4addbaad6c3249c883a80f6f8a33eafd X-SW-Source: 2017-q4/txt/msg00037.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=dadc9e7e4addbaad6c3249c883a80f6f8a33eafd commit dadc9e7e4addbaad6c3249c883a80f6f8a33eafd Author: Sebastian Huber Date: Tue Nov 28 08:00:33 2017 +0100 RTEMS: Add semaphore functions Declare semaphore try wait and post binary functions. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/sys/rtems/include/sys/lock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/newlib/libc/sys/rtems/include/sys/lock.h b/newlib/libc/sys/rtems/include/sys/lock.h index 85b0cd8..d616902 100644 --- a/newlib/libc/sys/rtems/include/sys/lock.h +++ b/newlib/libc/sys/rtems/include/sys/lock.h @@ -300,8 +300,12 @@ int _Semaphore_Wait_timed(struct _Semaphore_Control *, int _Semaphore_Wait_timed_ticks(struct _Semaphore_Control *, __uint32_t); +int _Semaphore_Try_wait(struct _Semaphore_Control *); + void _Semaphore_Post(struct _Semaphore_Control *); +void _Semaphore_Post_binary(struct _Semaphore_Control *); + static __inline void _Semaphore_Destroy(struct _Semaphore_Control *_semaphore) {