extern int _psm_debug;
-extern int _psm_threads;
-
extern int _rpmal_debug;
extern int _rpmdb_debug;
NULL, NULL},
{ "psmdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_psm_debug, -1,
N_("debug package state machine"), NULL},
- { "psmthreads", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_psm_threads, -1,
- N_("use threads for package state machine"), NULL},
{ "rpmaldebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmal_debug, -1,
NULL, NULL},
{ "rpmdbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmdb_debug, -1,
#define _PSM_DEBUG 0
int _psm_debug = _PSM_DEBUG;
-int _psm_threads = 0;
/**
*/
return rpmpsmLink(psm, RPMDBG_M("rpmpsmNew"));
}
-static void * rpmpsmThread(void * arg)
-{
- rpmpsm psm = arg;
- return ((void *) rpmpsmStage(psm, psm->nstage));
-}
-
static int rpmpsmNext(rpmpsm psm, pkgStage nstage)
{
psm->nstage = nstage;
- if (_psm_threads)
- return rpmsqJoin( rpmsqThread(rpmpsmThread, psm) );
return rpmpsmStage(psm, psm->nstage);
}