Changeset 31155 for trunk/ppImage/src/ppImageArguments.c
- Timestamp:
- Apr 4, 2011, 1:13:20 PM (15 years ago)
- Location:
- trunk/ppImage
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage
- Property svn:ignore
-
old new 17 17 libtool 18 18 Doxyfile 19 a.out.dSYM
-
- Property svn:ignore
-
trunk/ppImage/src
- Property svn:mergeinfo changed
-
trunk/ppImage/src/ppImageArguments.c
r29833 r31155 55 55 } 56 56 57 // generic arguments (version -- ignored in this case, dumpconfig) 58 PS_ARGUMENTS_GENERIC( psphot, config, argc, argv ); 59 60 // thread arguments 61 PS_ARGUMENTS_THREADS( psphot, config, argc, argv ) 62 57 63 // save the following additional recipe values based on command-line options 58 64 // these options override the PPIMAGE recipe values loaded from recipe files … … 84 90 psArgumentRemove(argnum, &argc, argv); 85 91 pmVisualSetVisual(true); 86 }87 88 // Number of threads89 if ((argnum = psArgumentGet(argc, argv, "-threads"))) {90 psArgumentRemove(argnum, &argc, argv);91 int nThreads = atoi(argv[argnum]);92 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads);93 psArgumentRemove(argnum, &argc, argv);94 95 // create the thread pool with number of desired threads, supplying our thread launcher function96 // XXX need to determine the number of threads from the config data97 psThreadPoolInit (nThreads);98 92 } 99 93 … … 152 146 } 153 147 154 if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {155 psArgumentRemove(argnum, &argc, argv);156 psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,157 "Filename for configuration dump", argv[argnum]);158 psArgumentRemove(argnum, &argc, argv);159 }160 161 148 if (argc != 2) usage (); 162 149
Note:
See TracChangeset
for help on using the changeset viewer.
