47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
/* epicsMutexTestMain.c */
|
|
|
|
/* Author: Marty Kraimer Date: 26JAN2000 */
|
|
|
|
/********************COPYRIGHT NOTIFICATION**********************************
|
|
This software was developed under a United States Government license
|
|
described on the COPYRIGHT_UniversityOfChicago file included as part
|
|
of this distribution.
|
|
****************************************************************************/
|
|
|
|
#include <stddef.h>
|
|
#include <stdlib.h>
|
|
#include <stddef.h>
|
|
#include <string.h>
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
|
|
#include "epicsThread.h"
|
|
extern "C" void epicsMutexTest(int nthreads,int errVerbose);
|
|
|
|
|
|
int main(int argc,char *argv[])
|
|
{
|
|
int nthreads = 2;
|
|
int errVerbose = 0;
|
|
|
|
if(argc>1) {
|
|
if(isdigit(*argv[1])) {
|
|
sscanf(argv[1],"%d",&nthreads);
|
|
printf("nthreads %d\n",nthreads);
|
|
} else {
|
|
printf("Illegal argument %s\n",argv[1]);
|
|
}
|
|
}
|
|
if(argc>2) {
|
|
if(isdigit(*argv[2])) {
|
|
sscanf(argv[2],"%d",&errVerbose);
|
|
printf("errVerbose %d\n",errVerbose);
|
|
} else {
|
|
printf("Illegal argument %s\n",argv[1]);
|
|
}
|
|
}
|
|
epicsMutexTest(nthreads,errVerbose);
|
|
printf("main terminating\n");
|
|
return(0);
|
|
}
|