#define _FSM_DEBUG 0
int _fsm_debug = _FSM_DEBUG;
-int _fsm_threads = 0;
-
/* XXX Failure to remove is not (yet) cause for failure. */
static int strict_erasures = 0;
return dn;
}
-static void * fsmThread(void * arg)
-{
- FSM_t fsm = arg;
- return ((void *) ((long) fsmStage(fsm, fsm->nstage)));
-}
-
int fsmNext(FSM_t fsm, fileStage nstage)
{
fsm->nstage = nstage;
- if (_fsm_threads)
- return rpmsqJoin( rpmsqThread(fsmThread, fsm) );
return fsmStage(fsm, fsm->nstage);
}
extern int _fsm_debug;
-extern int _fsm_threads;
-
extern int _hdr_debug;
extern int _print_pkts;
{ "fsmdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_fsm_debug, -1,
N_("debug payload file state machine"), NULL},
- { "fsmthreads", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_fsm_threads, -1,
- N_("use threads for file state machine"), NULL},
{ "hdrdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_hdr_debug, -1,
NULL, NULL},
{ "prtpkts", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_print_pkts, -1,