Added SILC Thread Queue API
[silc.git] / lib / silcutil / silcfsm_i.h
index 9b2e5a9ebf5e7b66240190d82d55fa036e5d3640..50475da5ca7c4d5204b2539eecaea5a8c68762d9 100644 (file)
@@ -57,7 +57,7 @@ struct SilcFSMObject {
   union {
     /* Machine */
     struct {
-      SilcUInt32 threads;              /* Number of threads */
+      SilcAtomic32 threads;            /* Number of threads */
       SilcMutex lock;                  /* Lock, valid if using real threads */
     } m;
 
@@ -96,7 +96,7 @@ SilcBool silc_fsm_set_call(struct SilcFSMObject *fsm, SilcBool async_call)
 /* Wait for thread to terminate */
 SilcBool silc_fsm_thread_wait(void *fsm, void *thread);
 
-/* Eventphores */
+/* Events */
 SilcUInt32 silc_fsm_event_wait(SilcFSMEvent event, void *fsm);
 SilcUInt32 silc_fsm_event_timedwait(SilcFSMEvent event, void *fsm,
                                    SilcUInt32 seconds, SilcUInt32 useconds,