[Pkg-gnupg-commit] [gnupg2] 109/205: g10: Use gpg-error abstraction of sched_yield.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed May 11 08:38:24 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch experimental
in repository gnupg2.
commit 8be9dab2dd2f83ca922c01542c63b404e34bdfd9
Author: Justus Winter <justus at g10code.com>
Date: Thu Mar 31 17:23:31 2016 +0200
g10: Use gpg-error abstraction of sched_yield.
* g10/tofu.c (begin_transaction): Use 'gpgrt_yield'.
Signed-off-by: Justus Winter <justus at g10code.com>
---
g10/tofu.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/g10/tofu.c b/g10/tofu.c
index baa2ac2..5f381b0 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -28,7 +28,6 @@
#include <sys/stat.h>
#include <assert.h>
#include <stdarg.h>
-#include <sched.h>
#include <sqlite3.h>
#include "gpg.h"
@@ -240,7 +239,7 @@ begin_transaction (struct db *db, int only_batch)
batch_update_started = gnupg_get_time ();
/* Yield to allow another process a chance to run. */
- sched_yield ();
+ gpgrt_yield ();
}
/* XXX: In split mode, this can end in deadlock.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list