Show
Ignore:
Timestamp:
08/05/10 00:45:02 (4 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1280969102 +0000
git-parent:

[3f95e0c50baf9d8aed9d35b63a9a0b40a28e0cbf]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1280969102 +0000
Message:

allow retrieve of jobq by name

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/eventer/eventer_jobq.c

    r24c08d7 re3106ad  
    133133} 
    134134 
     135eventer_jobq_t * 
     136eventer_jobq_retrieve(const char *name) { 
     137  void *vjq = NULL; 
     138  pthread_mutex_lock(&all_queues_lock); 
     139  noit_hash_retrieve(&all_queues, name, strlen(name), &vjq); 
     140  pthread_mutex_unlock(&all_queues_lock); 
     141  return vjq; 
     142} 
     143 
    135144void 
    136145eventer_jobq_enqueue(eventer_jobq_t *jobq, eventer_job_t *job) {