Here it is, the new thread interface.
[citadel.git] / citadel / modules / test / serv_test.c
index 356b167b5607c0d54dfd7435992ffd8a135aa89f..af49e8d322e6fbf0d0711fb38a4f3ad196253882 100644 (file)
@@ -59,11 +59,14 @@ void LoginTest(void) {
 CTDL_MODULE_INIT(test)
 {
 #if 0
-   CtdlRegisterCleanupHook(CleanupTest);
-   CtdlRegisterSessionHook(NewRoomTest, EVT_NEWROOM);
-   CtdlRegisterSessionHook(SessionStartTest, EVT_START);
-   CtdlRegisterSessionHook(SessionStopTest, EVT_STOP);
-   CtdlRegisterSessionHook(LoginTest, EVT_LOGIN);
+       if (!threading)
+       {
+               CtdlRegisterCleanupHook(CleanupTest);
+               CtdlRegisterSessionHook(NewRoomTest, EVT_NEWROOM);
+               CtdlRegisterSessionHook(SessionStartTest, EVT_START);
+               CtdlRegisterSessionHook(SessionStopTest, EVT_STOP);
+               CtdlRegisterSessionHook(LoginTest, EVT_LOGIN);
+       }
 #endif
 
    /* return our Subversion id for the Log */