Skip to content

Commit

Permalink
Add clockid_t field to pthread_condattr_t_
Browse files Browse the repository at this point in the history
Since pthread_condattr_t is defined as pthread_condattr_t_,
we add the clockid_t field to pthread_condattr_t_. This field
is used by funcions such as pthread_condattr_getclock.

Signed-off-by: Vlad-Andrei BĂDOIU <[email protected]>
Reviewed-by: Felipe Huici <[email protected]>
  • Loading branch information
vladandrew authored and felipehuici committed Apr 2, 2020
1 parent f8b3de2 commit c7b2424
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions patches/0011-Add-clockid_t-field-to-pthread_condattr_t_.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
From 6f1dff8cd9df482fa7f13a55c6e20303f0809f35 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vlad-Andrei=20B=C4=82DOIU?=
<[email protected]>
Date: Mon, 23 Mar 2020 12:52:57 +0200
Subject: [PATCH 1/1] Add clockid_t field to pthread_condattr_t_
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Vlad-Andrei BĂDOIU <[email protected]>
---
implement.h | 1 +
1 file changed, 1 insertion(+)

diff --git a/implement.h b/implement.h
index 25ae4f1..ad94602 100644
--- a/implement.h
+++ b/implement.h
@@ -250,6 +250,7 @@ struct pthread_cond_t_

struct pthread_condattr_t_
{
+ clockid_t clock;
int pshared;
};

--
2.20.1

0 comments on commit c7b2424

Please sign in to comment.