]> xenbits.xensource.com Git - unikraft/libs/pthread-embedded.git/commitdiff
Add clockid_t field to pthread_condattr_t_
authorVlad-Andrei BĂDOIU <vlad_andrei.badoiu@stud.acs.upb.ro>
Tue, 31 Mar 2020 15:07:18 +0000 (18:07 +0300)
committerFelipe Huici <felipe.huici@neclab.eu>
Thu, 2 Apr 2020 08:57:19 +0000 (10:57 +0200)
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 <vlad_andrei.badoiu@stud.acs.upb.ro>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
patches/0011-Add-clockid_t-field-to-pthread_condattr_t_.patch [new file with mode: 0644]

diff --git a/patches/0011-Add-clockid_t-field-to-pthread_condattr_t_.patch b/patches/0011-Add-clockid_t-field-to-pthread_condattr_t_.patch
new file mode 100644 (file)
index 0000000..7052760
--- /dev/null
@@ -0,0 +1,29 @@
+From 6f1dff8cd9df482fa7f13a55c6e20303f0809f35 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Vlad-Andrei=20B=C4=82DOIU?=
+ <vlad_andrei.badoiu@stud.acs.upb.ro>
+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 <vlad_andrei.badoiu@stud.acs.upb.ro>
+---
+ 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
+