threading: store thread module flags in threadvars

pull/1716/head
Victor Julien 10 years ago
parent 77624701e7
commit ca3916881f

@ -71,6 +71,9 @@ typedef struct ThreadVars_ {
/** no of times the thread has been restarted on failure */
uint8_t restarted;
/** TmModule::flags for each module part of this thread */
uint8_t tmm_flags;
/** local id */
int id;

@ -730,6 +730,7 @@ static inline TmSlot * _TmSlotSetFuncAppend(ThreadVars *tv, TmModule *tm, void *
* received a TM as arg, if it didn't exist */
slot->tm_id = TmModuleGetIDForTM(tm);
tv->tmm_flags |= tm->flags;
tv->cap_flags |= tm->cap_flags;
if (tv->tm_slots == NULL) {

Loading…
Cancel
Save