fn inject_or_push(&self, job: JobRef) {
        let worker_thread = WorkerThread::current();

        unsafe {
            if !worker_thread.is_null() {
                (*worker_thread).push(job);
            } else {
                self.inject(&[job]);
            }
        }
    }
/// Post a job to the given `registry`. If we are running on a
/// worker thread for the registry, this will push onto the
/// deque. Else, it will inject from the outside (which is slower).
Post a job to the given `registry`. If we are running on a
worker thread for the registry, this will push onto the
deque. Else, it will inject from the outside (which is slower).
Post a job to the given ` registry ` . If we are running on a worker thread for the registry this will push onto the deque . Else it will inject from the outside ( which is slower ) .
fn inject_or_push(&self, job: JobRef) {
        let worker_thread = WorkerThread::current();
        unsafe {
            if !worker_thread.is_null() {
                (*worker_thread).push(job);
            } else {
                self.inject(&[job]);
            }
        }
    }
fn inject_or_push ( & self , job : JobRef ) { let worker_thread = WorkerThread :: current ( ) ; unsafe { if ! worker_thread . is_null ( ) { ( * worker_thread ) . push ( job ) ; } else { self . inject ( & [ job ] ) ; } } }
Post a job to the given `registry`.
Post a job to the given ` registry ` .
&self
job
JobRef
&self
job
JobRef