From: Art Cancro Date: Thu, 23 Sep 2004 03:02:31 +0000 (+0000) Subject: * MyContext() no longer declared INLINE X-Git-Tag: v7.86~5249 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=6419ea443be967cc3d962857ada6c058e1af6acb;p=citadel.git * MyContext() no longer declared INLINE --- diff --git a/citadel/ChangeLog b/citadel/ChangeLog index 0cac82d21..39b3d1990 100644 --- a/citadel/ChangeLog +++ b/citadel/ChangeLog @@ -1,4 +1,7 @@ $Log$ + Revision 625.31 2004/09/23 03:02:31 ajc + * MyContext() no longer declared INLINE + Revision 625.30 2004/09/23 02:54:46 ajc * in MyContext(), reduced the number of calls to pthread_getspecific() from two to one @@ -6110,3 +6113,4 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant Fri Jul 10 1998 Art Cancro * Initial CVS import + diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 71b1bd9b7..fa3fd5f32 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -380,9 +380,9 @@ int ig_uds_server(char *sockpath, int queue_len) * called this function. If there's no such binding (for example, if it's * called by the housekeeper thread) then a generic 'master' CC is returned. * - * It's inlined because it's used *VERY* frequently. + * This function is used *VERY* frequently and must be kept small. */ -INLINE struct CitContext *MyContext(void) { +struct CitContext *MyContext(void) { register struct CitContext *c; diff --git a/citadel/sysdep_decls.h b/citadel/sysdep_decls.h index 15f08bb7b..e0be5f472 100644 --- a/citadel/sysdep_decls.h +++ b/citadel/sysdep_decls.h @@ -46,7 +46,7 @@ void begin_critical_section (int which_one); void end_critical_section (int which_one); int ig_tcp_server (char *ip_addr, int port_number, int queue_len); int ig_uds_server(char *sockpath, int queue_len); -INLINE struct CitContext *MyContext (void); +struct CitContext *MyContext (void); struct CitContext *CreateNewContext (void); void InitMyContext (struct CitContext *con); void buffer_output(void);