Commit Graph

18 Commits

Author SHA1 Message Date
022bfface0 define in terms of privincludedir.
* 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
2003-02-05 21:58:39 +00:00
c43c83145a Allow an e-mutex to be used with standard condition variables.
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
2002-12-09 00:23:58 +00:00
554b987da7 Added an optional nspr pipe field. (e_msgport_new): Init nspr pipe to
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
2002-11-22 22:28:49 +00:00
f4b8c08e31 Return the actual count, rather than always 0!
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
2002-07-25 10:10:35 +00:00
839b4be584 Protect against EINTR (irix?), see bug #24086.
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
2002-06-03 12:08:38 +00:00
95f58c95b6 Destroy our mutex too. (e_thread_new): Add thread to a new list of all
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
2002-05-06 11:46:36 +00:00
8
2ca8993160 Write the pipe notification outside the lock. This way if the pipe fills
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
2001-09-28 18:38:45 +00:00
1
03238847a7 Instead of using pthread_cancel() which seems to have numerous
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
2001-09-21 05:56:03 +00:00
4ce894e3ab Debugging routine. (Only works for recursive mutexes right now.)
* e-msgport.c (e_mutex_assert_locked): Debugging routine. (Only
	works for recursive mutexes right now.)

svn path=/trunk/; revision=9638
2001-05-01 17:37:31 +00:00
4c2f2ea4a7 Added #include <glib.h> and move corresponding local headers to the top to
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
2001-04-24 09:23:12 +00:00
6d9167de80 Remove #include <glib.h> Shuffle some headers. Remove #include
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
2001-03-29 18:07:13 +00:00
c2d5b54e94 Turned off some of the debug.
2001-02-23  Not Zed  <NotZed@Ximian.com>

        * e-msgport.c : Turned off some of the debug.

svn path=/trunk/; revision=8364
2001-02-23 02:42:15 +00:00
c70f26c34b Wait a lot lot longer for threads to finish.
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
2001-02-22 22:32:29 +00:00
80697cc5ad Turn on joining of cancelled threads. (e_msgport_wait): Put a cleanup
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
2001-01-30 23:08:25 +00:00
d057619fd6 If we have waiting threads, then dont start a new one for the NEW case.
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
2001-01-29 09:03:04 +00:00
fc9fd0c4dd #define E_THREAD_NONE as ((pthread_t)~0) and use that instead of ~0
* 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
2001-01-05 20:04:15 +00:00
95279feb14 Some debug commented out, static list intialiser.
svn path=/trunk/; revision=7221
2001-01-03 00:09:02 +00:00
5674966eeb Merge from camel-mt-branch.
2000-12-24  Not Zed  <NotZed@HelixCode.com>

        * Merge from camel-mt-branch.

svn path=/trunk/; revision=7152
2000-12-24 00:58:02 +00:00