threading: remove unused cmd thread create func

pull/1487/head
Victor Julien 10 years ago
parent df5e9d44ca
commit c96805e839

@ -1262,34 +1262,6 @@ ThreadVars *TmThreadCreateCmdThreadByName(char *name, char *module,
return tv;
}
/**
* \brief Creates and returns the TV instance for a CMD thread.
* This function supports only custom slot functions and hence a
* function pointer should be sent as an argument.
*
* \param name Name of this TV instance
* \param fn_p Pointer to function when \"slots\" is of type \"custom\"
* \param mucond Flag to indicate whether to initialize the condition
* and the mutex variables for this newly created TV.
*
* \retval the newly created TV instance, or NULL on error
*/
ThreadVars *TmThreadCreateCmdThread(char *name, void *(fn_p)(void *),
int mucond)
{
ThreadVars *tv = NULL;
tv = TmThreadCreate(name, NULL, NULL, NULL, NULL, "custom", fn_p, mucond);
if (tv != NULL) {
tv->type = TVT_CMD;
tv->id = TmThreadsRegisterThread(tv, tv->type);
TmThreadSetCPU(tv, MANAGEMENT_CPU_SET);
}
return tv;
}
/**
* \brief Appends this TV to tv_root based on its type
*

@ -91,7 +91,6 @@ ThreadVars *TmThreadCreatePacketHandler(char *, char *, char *, char *, char *,
ThreadVars *TmThreadCreateMgmtThread(char *name, void *(fn_p)(void *), int);
ThreadVars *TmThreadCreateMgmtThreadByName(char *name, char *module,
int mucond);
ThreadVars *TmThreadCreateCmdThread(char *name, void *(fn_p)(void *), int);
ThreadVars *TmThreadCreateCmdThreadByName(char *name, char *module,
int mucond);
TmEcode TmThreadSpawn(ThreadVars *);

Loading…
Cancel
Save