- Timestamp:
- Jul 27, 2008, 12:41:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/pswarp/src/pswarpArguments.c
r18622 r18753 39 39 "Filename for statistics of output image", argv[N]); 40 40 psArgumentRemove(N, &argc, argv); 41 } 42 43 // Number of threads 44 if ((N = psArgumentGet(argc, argv, "-threads"))) { 45 psArgumentRemove(N, &argc, argv); 46 int nThreads = atoi(argv[N]); 47 psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads); 48 psArgumentRemove(N, &argc, argv); 49 50 // create the thread pool with number of desired threads, supplying our thread launcher function 51 // XXX need to determine the number of threads from the config data 52 psThreadPoolInit (nThreads, &pswarpThreadLauncher); 41 53 } 42 54
Note:
See TracChangeset
for help on using the changeset viewer.
