]> code.citadel.org Git - citadel.git/blobdiff - citadel/context.h
Switched back to the old style thread architecture in preparation for eventual migrat...
[citadel.git] / citadel / context.h
index 005ac358519a8d875660a935aac10469cbc1c3d5..6553eb305e54d6d8d8864f37a47546698df83553 100644 (file)
@@ -141,7 +141,7 @@ enum {
 #define CC MyContext()
 
 
-extern citthread_key_t MyConKey;                       /* TSD key for MyContext() */
+extern pthread_key_t MyConKey;                 /* TSD key for MyContext() */
 extern int num_sessions;
 extern CitContext masterCC;
 extern CitContext *ContextList;
@@ -156,7 +156,7 @@ void dead_session_purge(int force);
 void set_async_waiting(struct CitContext *ccptr);
 
 /* forcibly close and flush fd's on shutdown */
-void terminate_stuck_sessions(void);
+void terminate_all_sessions(void);
 
 /* Deprecated, user CtdlBumpNewMailCounter() instead */
 void BumpNewMailCounter(long) __attribute__ ((deprecated));
@@ -176,7 +176,7 @@ static INLINE void become_session(CitContext *which_con) {
 /*
        pid_t tid = syscall(SYS_gettid);
 */
-       citthread_setspecific(MyConKey, (void *)which_con );
+       pthread_setspecific(MyConKey, (void *)which_con );
 /*
        syslog(LOG_DEBUG, "[%d]: Now doing %s\n", 
                      (int) tid,