Changeset 31158 for trunk/ppStack/src/ppStackArguments.c
- Timestamp:
- Apr 4, 2011, 1:16:41 PM (15 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 2 edited
-
. (modified) (2 props)
-
src/ppStackArguments.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack
- Property svn:ignore
-
old new 17 17 autom4te.cache 18 18 Doxyfile 19 a.out.dSYM
-
- Property svn:mergeinfo deleted
- Property svn:ignore
-
trunk/ppStack/src/ppStackArguments.c
r30620 r31158 110 110 { 111 111 assert(config); 112 113 // generic arguments (version, dumpconfig) 114 PS_ARGUMENTS_GENERIC( ppStack, config, argc, argv ); 115 116 // thread arguments 117 PS_ARGUMENTS_THREADS( ppStack, config, argc, argv ) 112 118 113 119 { … … 181 187 psMetadataAddStr(arguments, PS_LIST_TAIL, "-temp-variance", 0, "Suffix for temporary variance maps", NULL); 182 188 psMetadataAddBool(arguments, PS_LIST_TAIL, "-temp-delete", 0, "Delete temporary files on completion?", false); 183 psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads to use", 0);184 189 psMetadataAddBool(arguments, PS_LIST_TAIL, "-visual", 0, "visualisation", false); 185 190 … … 238 243 valueArgStr(arguments, "-stats", "STATS", arguments); 239 244 240 int numThreads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads241 if (numThreads > 0 && !psThreadPoolInit(numThreads)) {242 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to setup %d threads", numThreads);243 return false;244 }245 246 245 psMetadataAddBool(arguments, PS_LIST_TAIL, "PPSTACK.DEBUG.STACK", 0, 247 246 "Read old convolved images to debug stack?", debugStack);
Note:
See TracChangeset
for help on using the changeset viewer.
