diff options
author | rh <rh@pkgsrc.org> | 2002-10-11 09:29:59 +0000 |
---|---|---|
committer | rh <rh@pkgsrc.org> | 2002-10-11 09:29:59 +0000 |
commit | 1e3560d64269e93fc45102aabf5c9c6aa87e6445 (patch) | |
tree | bac14bfcde2cae962509ea9b0ca4daa666a82e89 /mail/evolution/patches | |
parent | 18e64640ad262555e0d27874d46214f980f2fdb2 (diff) | |
download | pkgsrc-1e3560d64269e93fc45102aabf5c9c6aa87e6445.tar.gz |
Only sched_yield() periodically if pth is used on NetBSD.
Add @exec/@unexec scrollkeeper-update to PLIST.
Bump PKGREVISION.
Diffstat (limited to 'mail/evolution/patches')
-rw-r--r-- | mail/evolution/patches/patch-ab | 22 | ||||
-rw-r--r-- | mail/evolution/patches/patch-ac | 26 |
2 files changed, 26 insertions, 22 deletions
diff --git a/mail/evolution/patches/patch-ab b/mail/evolution/patches/patch-ab index 67bd69558d9..2e2be3e26d2 100644 --- a/mail/evolution/patches/patch-ab +++ b/mail/evolution/patches/patch-ab @@ -1,8 +1,8 @@ -$NetBSD: patch-ab,v 1.3 2002/03/26 20:50:13 rh Exp $ +$NetBSD: patch-ab,v 1.4 2002/10/11 09:29:59 rh Exp $ ---- mail/main.c.orig Fri Dec 14 22:28:03 2001 -+++ mail/main.c Tue Mar 26 15:01:12 2002 -@@ -36,6 +36,24 @@ +--- mail/main.c.orig Tue Dec 18 02:21:53 2001 ++++ mail/main.c +@@ -36,6 +36,26 @@ #include "mail.h" #include "mail-mt.h" @@ -12,27 +12,29 @@ $NetBSD: patch-ab,v 1.3 2002/03/26 20:50:13 rh Exp $ +#include <pthread.h> + +/* -+ * NetBSD uses non-preemptive pth, so we yield the processor periodically ++ * Pth is non-preemptive, so we yield the processor periodically + */ + -+gint ++#ifdef _PTH_PTHREAD_H_ ++static gint +pth_nbschedule (gpointer data) +{ -+ pthread_yield_np(); ++ sched_yield(); + + return TRUE; +} -+#endif ++#endif /* _PTH_PTHREAD_H_ */ ++#endif /* __NetBSD__ */ + /*#define DO_MCHECK*/ #ifdef DO_MCHECK -@@ -152,6 +170,10 @@ +@@ -152,6 +172,10 @@ main (int argc, char *argv []) g_mutex_free (gdk_threads_mutex); gdk_threads_mutex = NULL; } + -+#ifdef __NetBSD__ ++#ifdef _PTH_PTHREAD_H_ + gtk_timeout_add (200, pth_nbschedule, NULL); +#endif diff --git a/mail/evolution/patches/patch-ac b/mail/evolution/patches/patch-ac index 6ff26307d2d..55b018a85c5 100644 --- a/mail/evolution/patches/patch-ac +++ b/mail/evolution/patches/patch-ac @@ -1,8 +1,8 @@ -$NetBSD: patch-ac,v 1.4 2002/03/16 07:31:26 rh Exp $ +$NetBSD: patch-ac,v 1.5 2002/10/11 09:29:59 rh Exp $ ---- shell/main.c.orig Sat Dec 15 07:21:56 2001 +--- shell/main.c.orig Tue Dec 18 02:21:02 2001 +++ shell/main.c -@@ -63,6 +63,23 @@ +@@ -63,6 +63,25 @@ static char *evolution_directory = NULL; static gboolean no_splash = FALSE; extern char *evolution_debug_log; @@ -11,38 +11,40 @@ $NetBSD: patch-ac,v 1.4 2002/03/16 07:31:26 rh Exp $ +#include <pthread.h> + +/* -+ * NetBSD uses non-preemptive pth, so we yield the processor periodically ++ * Pth is non-preemptive, so we yield the processor periodically + */ + -+gint ++#ifdef _PTH_PTHREAD_H_ ++static gint +pth_nbschedule (gpointer data) +{ -+ pthread_yield_np(); ++ sched_yield(); + + return TRUE; +} -+#endif ++#endif /* _PTH_PTHREAD_H_ */ ++#endif /* __NetBSD__ */ + static GtkWidget * quit_box_new (void) -@@ -190,6 +207,10 @@ +@@ -190,6 +209,10 @@ idle_cb (void *data) uri_list = (GSList *) data; -+#ifdef __NetBSD__ -+ pthread_yield_np(); ++#ifdef _PTH_PTHREAD_H_ ++ sched_yield(); +#endif + shell = e_shell_new (evolution_directory, ! no_splash, &result); g_free (evolution_directory); -@@ -350,6 +371,10 @@ +@@ -350,6 +373,10 @@ main (int argc, char **argv) } gtk_idle_add (idle_cb, uri_list); + -+#ifdef __NetBSD__ ++#ifdef _PTH_PTHREAD_H_ + gtk_timeout_add (200, pth_nbschedule, NULL); +#endif |