[svn] w32pth - r10 - trunk

svn author marcus cvs at cvs.gnupg.org
Thu Jul 26 21:12:18 CEST 2007


Author: marcus
Date: 2007-07-26 21:11:47 +0200 (Thu, 26 Jul 2007)
New Revision: 10

Modified:
   trunk/ChangeLog
   trunk/libw32pth.def
   trunk/pth.h
   trunk/w32-pth.c
Log:
2007-07-26  Marcus Brinkmann  <marcus at g10code.de>

	* libw32pth.def: Add pth_rwlock_init, pth_rwlock_acquire,
	pth_rwlock_release, and pth_yield.
	* pth.h (pth_yield): New prototype.
	* w32-pth.c (pth_yield): New function.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-20 15:26:16 UTC (rev 9)
+++ trunk/ChangeLog	2007-07-26 19:11:47 UTC (rev 10)
@@ -1,3 +1,10 @@
+2007-07-26  Marcus Brinkmann  <marcus at g10code.de>
+
+	* libw32pth.def: Add pth_rwlock_init, pth_rwlock_acquire,
+	pth_rwlock_release, and pth_yield.
+	* pth.h (pth_yield): New prototype.
+	* w32-pth.c (pth_yield): New function.
+
 2007-07-20  Marcus Brinkmann  <marcus at g10code.de>
 
 	* pth.h (PTH_RWLOCK_RD, PTH_RWLOCK_RW): New symbols.

Modified: trunk/libw32pth.def
===================================================================
--- trunk/libw32pth.def	2007-07-20 15:26:16 UTC (rev 9)
+++ trunk/libw32pth.def	2007-07-26 19:11:47 UTC (rev 10)
@@ -60,5 +60,10 @@
 
       pth_select_ev  @33
       pth_sigmask  @34
-        
 
+      pth_rwlock_release  @35
+      pth_rwlock_acquire  @36
+      pth_rwlock_init  @37
+
+      pth_yield @38
+

Modified: trunk/pth.h
===================================================================
--- trunk/pth.h	2007-07-20 15:26:16 UTC (rev 9)
+++ trunk/pth.h	2007-07-26 19:11:47 UTC (rev 10)
@@ -270,8 +270,10 @@
 
 int pth_sigmask (int how, const sigset_t *set, sigset_t *old);
 
+int pth_yield (pth_t tid);
 
 
+
 /*-- pth_util.c --*/
 
 /* void sigemptyset (struct sigset_s * ss); */

Modified: trunk/w32-pth.c
===================================================================
--- trunk/w32-pth.c	2007-07-20 15:26:16 UTC (rev 9)
+++ trunk/w32-pth.c	2007-07-26 19:11:47 UTC (rev 10)
@@ -1837,6 +1837,15 @@
 }
 
 
+int
+pth_yield (pth_t tid)
+{
+  implicit_init ();
+  enter_pth (__FUNCTION__);
+  Sleep (0);
+  leave_pth (__FUNCTION__);
+  return TRUE;
+}
 
 
 /* 




More information about the Gnupg-commits mailing list