Changeset 33905 for branches/eam_branches/ipp-20120405/Ohana
- Timestamp:
- May 23, 2012, 9:10:42 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120405/Ohana/src/dvomerge/src/dvomergeImageIDs.c
r33834 r33905 12 12 inDB.mode = dvo_catalog_catmode (CATMODE); 13 13 inDB.format = dvo_catalog_catformat (CATFORMAT); 14 status = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_ XCLD); // shorter timeout?14 status = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_SOFT); // shorter timeout? 15 15 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", inDB.filename); 16 16 … … 64 64 inDB.mode = dvo_catalog_catmode (CATMODE); 65 65 inDB.format = dvo_catalog_catformat (CATFORMAT); 66 status = dvo_image_lock (&inDB, ImageCat, 3600.0, LCK_XCLD); // shorter timeout?66 status = dvo_image_lock (&inDB, ImageCat, 5400.0, LCK_XCLD); // shorter timeout? 67 67 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", inDB.filename); 68 68 … … 78 78 Shutdown ("can't read input image catalog %s", inDB.filename); 79 79 } 80 dvo_image_unlock (&inDB); // unlock input 80 81 81 82 /*** load output/Images.dat ***/ … … 83 84 outDB.mode = dvo_catalog_catmode (CATMODE); 84 85 outDB.format = dvo_catalog_catformat (CATFORMAT); 85 status = dvo_image_lock (&outDB, ImageCat, 3600.0, LCK_XCLD); // shorter timeout?86 status = dvo_image_lock (&outDB, ImageCat, 5400.0, LCK_XCLD); // shorter timeout? 86 87 if (!status) Shutdown ("ERROR: failure to lock image catalog %s", outDB.filename); 87 88 … … 93 94 Shutdown ("can't read output image catalog %s", outDB.filename); 94 95 } 96 dvo_image_unlock (&outDB); // unlock output 95 97 96 98 // convert database table to internal structure & add to output image db 97 99 dvo_image_match_dbs(IDmap, &outDB, &inDB); 98 dvo_image_unlock (&inDB); // unlock input99 dvo_image_unlock (&outDB); // unlock output100 100 101 101 return TRUE;
Note:
See TracChangeset
for help on using the changeset viewer.
