本文整理汇总了C++中CONTROL::CheckKnobs方法的典型用法代码示例。如果您正苦于以下问题:C++ CONTROL::CheckKnobs方法的具体用法?C++ CONTROL::CheckKnobs怎么用?C++ CONTROL::CheckKnobs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CONTROL
的用法示例。
在下文中一共展示了CONTROL::CheckKnobs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char **argv)
{
if (PIN_Init(argc, argv))
return 1;
PIN_AddThreadStartFunction(OnNewThread, 0);
Control.CheckKnobs(Handler, 0);
PIN_StartProgram();
}
示例2: main
// argc, argv are the entire command line, including pin -t <toolname> -- ...
int main(int argc, char * argv[])
{
if( PIN_Init(argc,argv) )
{
return Usage();
}
icount.Activate();
// Activate alarm, must be done before PIN_StartProgram
control.CheckKnobs(Handler, 0);
// Start the program, never returns
PIN_StartProgram();
return 0;
}
示例3: main
int main(int argc, char *argv[])
{
if( PIN_Init(argc,argv) )
{
return Usage();
}
icount.Activate();
bimodal.Activate();
// Activate alarm, must be done before PIN_StartProgram
control.CheckKnobs(Handler, 0);
outfile = new ofstream("bimodal.out");
PIN_AddFiniFunction(Fini, 0);
PIN_StartProgram();
}
示例4: main
int main(int argc, char * argv[])
{
if( PIN_Init(argc,argv) )
{
return Usage();
}
icount.Activate();
// Activate alarm, must be done before PIN_StartProgram
control.CheckKnobs(Handler, 0);
// Callback function "byeWorld" is invoked
// right before Pin releases control of the application
// to allow it to return to normal execution
PIN_AddDetachFunction(helloWorld, 0);
PIN_AddDetachFunction(byeWorld, 0);
// Never returns
PIN_StartProgram();
return 0;
}