- Timestamp:
- Jul 27, 2008, 12:41:58 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/pswarp/src/pswarpTransformReadout_Threaded.c
r18752 r18753 1 1 # include "pswarp.h" 2 2 3 #define SOURCE_ARRAY_BUFFER 100 // Size to grow the array of sources at a time 3 # define THREADED 1 4 # define SOURCE_ARRAY_BUFFER 100 // Size to grow the array of sources at a time 4 5 5 6 // NOTE: in this function, the coordinates are transformed from the OUTPUT to the INPUT … … 90 91 args->goodPixels = 0; 91 92 93 # if (THREADED) 92 94 // allocate a job 93 95 psThreadJob *job = psThreadJobAlloc ("PSWARP_TRANSFORM_TILE", 0); … … 97 99 psArrayAdd (job->args, 1, args); 98 100 psThreadJobAddPending (job); 101 # else 102 pswarpTransformTile (args); 103 goodPixels += args->goodPixels; 104 # endif 99 105 psFree (args); 100 106 } 101 107 } 108 109 # if (THREADED) 102 110 // wait here for the threaded jobs to finish 103 111 if (!psThreadPoolWait ()) { … … 115 123 psFree (job); 116 124 } 125 # endif 117 126 psFree(interp); 118 127 psFree(grid); 128 119 129 120 130 // Store the variance factor and number of good pixels
Note:
See TracChangeset
for help on using the changeset viewer.
