Changeset 18963
- Timestamp:
- Aug 8, 2008, 8:12:50 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubArguments.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r18920 r18963 217 217 psMetadataAddS32(arguments, PS_LIST_TAIL, "-renorm-width", 0, "Renormalisation width", 0); 218 218 psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", false); 219 psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0); 219 220 220 221 if (argc == 1 || !psArgumentParse(arguments, &argc, argv) || argc != 4) { … … 252 253 if (psMetadataLookupBool(NULL, arguments, "-photometry")) { 253 254 psMetadataAddBool(recipe, PS_LIST_TAIL, "PHOTOMETRY", PS_META_REPLACE, "Perform photometry?", true); 255 } 256 257 int threads = psMetadataLookupS32(NULL, arguments, "-threads"); // Number of threads 258 if (threads > 0) { 259 if (!psThreadPoolInit(threads)) { 260 psError(PS_ERR_UNKNOWN, false, "Unable to setup %d threads", threads); 261 return false; 262 } 263 pmSubtractionThreadSetup(); 254 264 } 255 265
Note:
See TracChangeset
for help on using the changeset viewer.
