summaryrefslogtreecommitdiff
path: root/databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-24 03:52:36 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2008-03-24 03:52:36 +0000
commit6f32add9a75efb180e462ffbdb0b080bc88088e3 (patch)
tree0fc7af36e22fc0dc7c1dc8aacabf6fe117e881da /databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c
parent- Add USE_XORG= x11 (diff)
The FreeBSD GNOME team is proud to annunce the release of GNOME 2.22.0 for
FreeBSD. The official GNOME 2.22 release notes can be found at http://library.gnome.org/misc/release-notes/2.22/ . On the FreeBSD front, this release features an updated hal port with support for video4linux devices, DRM (Direct Rendering), and better support of removable media. Work is also underway to tie webkit more closely into GNOME. As part of the GNOME 2.22 upgrade, GStreamer received a rather large upgrade as well. Be sure to consult UPDATING on the proper steps to upgrade all of your GNOME ports. This release would not have been possible without the contributions and testing efforts of the following people: Pawel Worach kan edwin Peter Ulrich Kruppa J. W. Ballantine Yasuda Keisuke Andriy Gapon
Diffstat (limited to 'databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c')
-rw-r--r--databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c b/databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c
deleted file mode 100644
index b39a8fe3cc88..000000000000
--- a/databases/evolution-data-server/files/extra-patch-libedataserver_e-msgport.c
+++ /dev/null
@@ -1,53 +0,0 @@
---- libedataserver/e-msgport.c.orig Sat Dec 10 07:31:28 2005
-+++ libedataserver/e-msgport.c Mon Dec 19 02:19:10 2005
-@@ -1069,9 +1069,18 @@ thread_dispatch(void *din)
- void e_thread_put(EThread *e, EMsg *msg)
- {
- pthread_t id;
-+ pthread_attr_t attr;
- EMsg *dmsg = NULL;
-
- pthread_mutex_lock(&e->mutex);
-+ pthread_attr_init(&attr);
-+ /* Give us a 1 MB thread stacksize on 32-bit architectures, and
-+ * a 2 MB thread stacksize on 64-bit architectures. */
-+ if (sizeof (void *) == 8) {
-+ pthread_attr_setstacksize(&attr, 0x200000);
-+ } else {
-+ pthread_attr_setstacksize(&attr, 0x100000);
-+ }
-
- /* the caller forgot to tell us what to do, well, we can't do anything can we */
- if (e->received == NULL) {
-@@ -1110,13 +1119,14 @@ void e_thread_put(EThread *e, EMsg *msg)
- e_msgport_put(e->server_port, msg);
- if (e->waiting == 0
- && g_list_length(e->id_list) < e->queue_limit
-- && pthread_create(&id, NULL, thread_dispatch, e) == 0) {
-+ && pthread_create(&id, &attr, thread_dispatch, e) == 0) {
- struct _thread_info *info = g_malloc0(sizeof(*info));
- t(printf("created NEW thread %" G_GUINT64_FORMAT "\n", e_util_pthread_id(id)));
- info->id = id;
- info->busy = TRUE;
- e->id_list = g_list_append(e->id_list, info);
- }
-+ pthread_attr_destroy(&attr);
- pthread_mutex_unlock(&e->mutex);
- return;
- }
-@@ -1125,13 +1135,14 @@ void e_thread_put(EThread *e, EMsg *msg)
- if (!e->have_thread) {
- int err;
-
-- if ((err = pthread_create(&e->id, NULL, thread_dispatch, e)) != 0) {
-+ if ((err = pthread_create(&e->id, &attr, thread_dispatch, e)) != 0) {
- g_warning("Could not create dispatcher thread, message queued?: %s", strerror(err));
- } else {
- e->have_thread = TRUE;
- }
- }
-
-+ pthread_attr_destroy(&attr);
- pthread_mutex_unlock(&e->mutex);
-
- if (dmsg) {