/** When dbg threads is defined, if a mutex fail to lock, it's
* initialized, logged, and does a second try; This is to prevent the system to freeze;
* It is for Mac OS X users;
- * If you see a mutex, spinlock or condiion not initialized, report it please!
+ * If you see a mutex, spinlock or condition not initialized, report it please!
*/
#define SCMutexLock_dbg(mut) ({ \
printf("%16s(%s:%d): (thread:%"PRIuMAX") locking mutex %p\n", __FUNCTION__, __FILE__, __LINE__, (uintmax_t)pthread_self(), mut); \
/** When dbg threads is defined, if a rwlock fail to lock, it's
* initialized, logged, and does a second try; This is to prevent the system to freeze;
- * If you see a rwlock, spinlock or condiion not initialized, report it please!
+ * If you see a rwlock, spinlock or condition not initialized, report it please!
*/
#define SCRWLockRDLock_dbg(rwl) ({ \
printf("%16s(%s:%d): (thread:%"PRIuMAX") locking rwlock %p\n", __FUNCTION__, __FILE__, __LINE__, (uintmax_t)pthread_self(), rwl); \
* ==31156== by 0x532E8A: UtRunTests (util-unittest.c:182)
* ==31156== by 0x4065C3: main (suricata.c:789)
*
- * To me this is a false positve, as the whole point of "trylock" is to see
+ * To me this is a false positive, as the whole point of "trylock" is to see
* if a spinlock is actually locked.
*
*/
#define THV_FLOW_LOOP BIT_U32(10) /**< thread is in flow shutdown loop */
/** signal thread's capture method to create a fake packet to force through
- * the engine. This is to force timely handling of maintenance taks like
+ * the engine. This is to force timely handling of maintenance tasks like
* rule reloads even if no packets are read by the capture method. */
#define THV_CAPTURE_INJECT_PKT BIT_U32(11)
#define THV_DEAD BIT_U32(12) /**< thread has been joined with pthread_join() */
uint8_t tmm_flags;
uint8_t cap_flags; /**< Flags to indicate the capabilities of all the
- TmModules resgitered under this thread */
+ TmModules registered under this thread */
uint8_t inq_id;
uint8_t outq_id;
#ifdef UNITTESTS
void (*RegisterTests)(void);
#endif
- uint8_t cap_flags; /**< Flags to indicate the capability requierment of
- the given TmModule */
+ uint8_t cap_flags; /**< Flags to indicate the capability requirement of
+ the given TmModule */
/* Other flags used by the module */
uint8_t flags;
} TmModule;
* \param tv A ThreadVars instance corresponding to the thread that has to be
* killed.
*
- * \retval r 1 killed succesfully
+ * \retval r 1 killed successfully
* 0 not yet ready, needs another look
*/
static int TmThreadKillThread(ThreadVars *tv)
/** \brief inject packet if THV_CAPTURE_INJECT_PKT is set
* Allow caller to supply their own packet
*
- * Meant for detect reload process that interupts an sleeping capture thread
+ * Meant for detect reload process that interrupts an sleeping capture thread
* to force a packet through the engine to complete a reload */
static inline void TmThreadsCaptureInjectPacket(ThreadVars *tv, Packet *p)
{
*
* Simple output queue handler that makes sure all packets of the same flow
* are sent to the same queue. We support different kind of q handlers. Have
- * a look at "autofp-scheduler" conf to further undertsand the various q
+ * a look at "autofp-scheduler" conf to further understand the various q
* handlers we provide.
*/
return;
}
-/** number of packets to keep reserved when calculating the the pending
+/** number of packets to keep reserved when calculating the pending
* return packets count. This assumes we need at max 10 packets in one
* PacketPoolWaitForN call. The actual number is 9 now, so this has a
* bit of margin. */
/**
* \brief Set the max_pending_return_packets value
*
- * Set it to the max pending packets value, devided by the number
+ * Set it to the max pending packets value, divided by the number
* of lister threads. Normally, in autofp these are the stream/detect/log
* worker threads.
*
*/
Packet *head;
/* Packets waiting (pending) to be returned to the given Packet
- * Pool. Accumulate packets for the same pool until a theshold is
+ * Pool. Accumulate packets for the same pool until a threshold is
* reached, then return them all at once. Keep the head and tail
* to fast insertion of the entire list onto a return stack.
*/