Code example for Semaphore

Methods: acquireUninterruptibly

0
		/* (non-Javadoc) 
         * @see android.os.AsyncTask#doInBackground(Params[]) 
         */ 
        @Override 
        protected AsyncTaskResult<Follower[]> doInBackground(Object... params) {
        	semaphore.acquireUninterruptibly();
        	 
        	AsyncTaskResult<Follower[]> result = new AsyncTaskResult<Follower[]>();
        	 
        	try { 
	            result.setResult(this.followerDAO.getFollowers(this.userName));
            } 
            catch (Throwable ex) {
	            result.setException(ex);
            } 
             
            return result;
        } 
 
		/* (non-Javadoc) 
         * @see android.os.AsyncTask#onPreExecute()