aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-msgport.c
Commit message (Collapse)AuthorAgeFilesLines
* removed, code moved into camel-net-utils.[ch].Not Zed2004-12-031-1250/+0
| | | | | | | | | | | | | | | | 2004-11-16 Not Zed <NotZed@Ximian.com> * e-host-utils.[ch]: removed, code moved into camel-net-utils.[ch]. 2004-11-15 Not Zed <NotZed@Ximian.com> * e-trie.[ch], e-memory.[ch], e-sexp.[ch], e-msgport.[ch]: Moved to eds/libedataserver. * e-path.[ch]: removed & deleted. svn path=/trunk/; revision=28050
* A time-based thread-safe in-memory cache thing. Called em_cache 'causeNot Zed2004-01-141-0/+209
| | | | | | | | | 2004-01-13 Not Zed <NotZed@Ximian.com> * e-msgport.c (em_cache*): A time-based thread-safe in-memory cache thing. Called em_cache 'cause there's an e_cache in gal. svn path=/trunk/; revision=24213
* check pthread_create return code properly. (e_mutex_lock): check pthread*Not Zed2003-08-121-12/+16
| | | | | | | | | | | | 2003-08-11 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_put): check pthread_create return code properly. (e_mutex_lock): check pthread* return codes properly. (e_mutex_unlock): Same here. (e_mutex_cond_wait): and here. svn path=/trunk/; revision=22177
* define in terms of privincludedir.Dan Winship2003-02-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | * Makefile.am (eutilincludedir, etc): define in terms of privincludedir. * ename/Makefile.am (libenameincludedir): Likewise * e-account.c: Fix warnings * e-account-list.c: Likewise * e-config-listener.c: Likewise * e-gui-utils.c: Likewise. * e-lang-utils.c: Likewise * e-msgport.c: Likewise * e-passwords.c: Likewise * e-categories-config.c (e_categories_config_open_dialog_for_entry): Use g_object_get/_set rather than gtk_ * e-url.c (e_uri_new): Use g_ascii_strdown instead of deprecated g_strdown. svn path=/trunk/; revision=19771
* Allow an e-mutex to be used with standard condition variables.Not Zed2002-12-091-0/+19
| | | | | | | | | 2002-12-07 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_mutex_cond_wait): Allow an e-mutex to be used with standard condition variables. svn path=/trunk/; revision=19055
* Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe toNot Zed2002-11-231-14/+113
| | | | | | | | | | | | | | | | 2002-11-22 Not Zed <NotZed@Ximian.com> * e-msgport.c (EMsgPort): Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe to null. (e_msgport_destroy): close prfiledesc's if they're open. (e_msgport_prfd): get the prfiledesc to wait asynchronously on. (e_msgport_put): Write notify to nspr pipe if it exists. (e_msgport_wait): poll nspr pipe fd if it is set, and the pipe fd isn't. (e_msgport_get): skim off a notify byte on the pr pipe if set. (): Include config.h, and nspr stuff if HAVE_NSS is set. svn path=/trunk/; revision=18893
* Return the actual count, rather than always 0!Not Zed2002-07-251-1/+1
| | | | | | | | | 2002-07-25 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_dlist_length): Return the actual count, rather than always 0! svn path=/trunk/; revision=17587
* Protect against EINTR (irix?), see bug #24086.Not Zed2002-06-031-4/+7
| | | | | | | | | 2002-06-03 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_msgport_wait): Protect against EINTR (irix?), see bug #24086. svn path=/trunk/; revision=17074
* Destroy our mutex too. (e_thread_new): Add thread to a new list of allNot Zed2002-05-061-0/+46
| | | | | | | | | | | | 2002-05-06 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Destroy our mutex too. (e_thread_new): Add thread to a new list of all threads. (e_thread_destroy): Remove thread from list of all threads. (e_thread_busy): New function, returh true if we're busy somewhere processing work. svn path=/trunk/; revision=16683
* Write the pipe notification outside the lock. This way if the pipe fills82001-09-291-3/+8
| | | | | | | | | | | | 2001-09-28 <NotZed@Ximian.com> * e-msgport.c (e_msgport_put): Write the pipe notification outside the lock. This way if the pipe fills up because of too many outstanding request, the queue isn't deadlocked. This only happens wiht 4096 outstanding messages, so something is getting VERY busy! Fixes #11121. svn path=/trunk/; revision=13218
* Instead of using pthread_cancel() which seems to have numerous12001-09-211-62/+49
| | | | | | | | | | | 2001-09-21 <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Instead of using pthread_cancel() which seems to have numerous implementation issues, send a special quit message to the subordinate thread. (thread_dispatch): When it gets a quit message, well, quit! svn path=/trunk/; revision=13043
* Debugging routine. (Only works for recursive mutexes right now.)Dan Winship2001-05-021-0/+8
| | | | | | | * e-msgport.c (e_mutex_assert_locked): Debugging routine. (Only works for recursive mutexes right now.) svn path=/trunk/; revision=9638
* Added #include <glib.h> and move corresponding local headers to the top toKjartan Maraas2001-04-241-2/+2
| | | | | | | | | | 2001-04-24 Kjartan Maraas <kmaraas@gnome.org> * e-gui-utils.c, e-memory, e-msgport.c, e-pilot-map, e-sexp.c: Added #include <glib.h> and move corresponding local headers to the top to catch missing includes in them. Tip from clahey. svn path=/trunk/; revision=9537
* Remove #include <glib.h> Shuffle some headers. Remove #includeKjartan Maraas2001-03-301-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-03-29 Kjartan Maraas <kmaraas@gnome.org> * e-corba-utils.h: Remove #include <glib.h> * e-dialog-widgets.c: Shuffle some headers. * e-dialog-widgets.h: Remove #include <libgnomeui/gnome-propertybox.h> * e-gtk-utils.c: #include <gtk/gtksignal.h> * e-gtk-utils.h: Replace #include <gtk/gtk.h> * e-gui-utils.c: Replace #include <gnome.h> * e-html-utils.c: Shuffle headers. * e-iterator.c: Replace #include <gtk/gtk.h> * e-iterator.h: Replace #include <gtk/gtk.h> * e-list-iterator.c: Remove #include <gtk/gtk.h> * e-list-iterator.h: Replace #include <gtk/gtk.h> * e-list.c: Remove #include <gtk/gtk.h> * e-list.h: Replace #include <gtk/gtk.h> * e-memory.c: #include <string.h> and <stdlib.h> * e-msgport.c: Move around some includes. s/%d/%ld/g in a printf() call to fix a warning. * e-pilot-map.c: #include <string.h>. Replace #include <gnome.h> * e-pilot-util.c: Remove #include <gnome.h> * e-sexp.c: Remove #include <glib.h> * e-sexp.h: Replace #include <gtk/gtk.h> * e-time-utils.c: #include <string.h> * md5-utils.c: Shuffle headers. * test-ename-western-gtk.c: Replace #include <gnome.h> * test-ename-western.c: Same here. svn path=/trunk/; revision=9016
* Turned off some of the debug.Not Zed2001-02-231-2/+2
| | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * e-msgport.c : Turned off some of the debug. svn path=/trunk/; revision=8364
* Wait a lot lot longer for threads to finish.Not Zed2001-02-231-2/+2
| | | | | | | | | 2001-02-23 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Wait a lot lot longer for threads to finish. svn path=/trunk/; revision=8352
* Turn on joining of cancelled threads. (e_msgport_wait): Put a cleanupNot Zed2001-01-311-1/+12
| | | | | | | | | | 2001-01-30 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_destroy): Turn on joining of cancelled threads. (e_msgport_wait): Put a cleanup handler to clear the mp lock if it happens in cond_wait, since it will be locked again. svn path=/trunk/; revision=7919
* If we have waiting threads, then dont start a new one for the NEW case.Not Zed2001-01-291-8/+89
| | | | | | | | | | | | | 2001-01-29 Not Zed <NotZed@Ximian.com> * e-msgport.c (e_thread_put): If we have waiting threads, then dont start a new one for the NEW case. (thread_dispatch): For the NEW case, dont exit, just keep running, waiting for a new message to come along. (e_thread_destroy): When cleaning up NEW threads, cancel any non-busy threads. svn path=/trunk/; revision=7883
* #define E_THREAD_NONE as ((pthread_t)~0) and use that instead of ~0Dan Winship2001-01-061-10/+12
| | | | | | | | * e-msgport.c: #define E_THREAD_NONE as ((pthread_t)~0) and use that instead of ~0 throughout. (pthread_t is a pointer type on my system, so there are lots of warnings without the cast.) svn path=/trunk/; revision=7271
* Some debug commented out, static list intialiser.Michael Zucci2001-01-031-6/+7
| | | | svn path=/trunk/; revision=7221
* Merge from camel-mt-branch.Not Zed2000-12-241-0/+774
2000-12-24 Not Zed <NotZed@HelixCode.com> * Merge from camel-mt-branch. svn path=/trunk/; revision=7152