Code example for Condition

Methods: signal

0
     * @param id the if of the file browser item. 
     */ 
    public void addJob(Media item) {
        lock.lock();
        mItems.add(item);
        totalCount++;
        notEmpty.signal();
        lock.unlock();
        Log.i(TAG, "Job added!");
    } 
 
    /** 
     * Thread main function. 
     */ 
    @Override 
    public void run() { 
        int count = 0;
        int total = 0;
 
        Log.d(TAG, "Thumbnailer started");