Changeset 31156 for trunk/ppSub/src/ppSubArguments.c
- Timestamp:
- Apr 4, 2011, 1:13:59 PM (15 years ago)
- Location:
- trunk/ppSub
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppSubArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub
- Property svn:ignore
-
old new 17 17 test 18 18 Doxyfile 19 a.out.dSYM
-
- Property svn:ignore
-
trunk/ppSub/src/ppSubArguments.c
r29937 r31156 57 57 } 58 58 59 void ppSubSetThreads (void) { 60 // ppSub does not have any of its own thread handlers 61 return; 62 } 63 59 64 bool ppSubArguments(int argc, char *argv[], ppSubData *data) 60 65 { … … 62 67 pmConfig *config = data->config; 63 68 assert(config); 69 70 // generic arguments (version, dumpconfig) 71 PS_ARGUMENTS_GENERIC( ppSub, config, argc, argv ); 72 73 // thread arguments 74 PS_ARGUMENTS_THREADS( ppSub, config, argc, argv ) 64 75 65 76 int argNum = psArgumentGet(argc, argv, "-debug"); // Debugging argument number … … 82 93 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL); 83 94 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stamps", 0, "Stamps filename; x,y on each line", NULL); 84 psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0);85 psMetadataAddStr(arguments, PS_LIST_TAIL, "-dumpconfig", 0, "file to dump configuration to", NULL);86 95 psMetadataAddS32(arguments, PS_LIST_TAIL, "-convolve", 0, "Image to convolve [1 or 2]", 0); 87 96 psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", NULL); … … 166 175 } 167 176 168 int threads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads169 if (threads > 0) {170 if (!psThreadPoolInit(threads)) {171 psError(psErrorCodeLast(), false, "Unable to setup %d threads", threads);172 return false;173 }174 }175 176 177 psTrace("ppSub", 1, "Done reading command-line arguments\n"); 177 178
Note:
See TracChangeset
for help on using the changeset viewer.
