- Timestamp:
- Jul 27, 2008, 8:00:23 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20080719/pswarp/src/pswarpThreadLauncher.c
r18747 r18752 33 33 // we have to lock here so the job queue cannot be empty yet no threads busy 34 34 psThreadLock(); 35 while ((job = psThreadJobGet ()) == NULL) {35 while ((job = psThreadJobGetPending ()) == NULL) { 36 36 psThreadUnlock(); 37 37 usleep (10000); … … 50 50 continue; 51 51 } 52 53 // list all allowed job types here 54 if (!strcmp (job->type, "PSWARP_TRANSFORM_TILE")) { 55 pswarpTransformTileArgs *args = job->args->data[0]; 56 bool status = pswarpTransformTile (args); 57 if (!status) { 58 self->fault = true; 59 } 60 // we do not have to lock here because this transition is not tied to the job queue 61 self->busy = false; 62 continue; 63 } 52 64 } 53 65 }
Note:
See TracChangeset
for help on using the changeset viewer.
