IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 27, 2008, 8:00:23 AM (18 years ago)
Author:
eugene
Message:

threaded and unthreaded equivalent versions now compile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20080719/pswarp/src/pswarpThreadLauncher.c

    r18747 r18752  
    3333        // we have to lock here so the job queue cannot be empty yet no threads busy
    3434        psThreadLock();
    35         while ((job = psThreadJobGet ()) == NULL) {
     35        while ((job = psThreadJobGetPending ()) == NULL) {
    3636            psThreadUnlock();
    3737            usleep (10000);
     
    5050            continue;
    5151        }
     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        }
    5264    } 
    5365}
Note: See TracChangeset for help on using the changeset viewer.