private void schedulePlaylistSave(){
  if (!mPlaylistLoading) {
    if (mPlaylistSavePending.compareAndSet(false,true)) {
      mThreadPoolManager.scheduleOnce(new PlaylistSaveTask(),2,TimeUnit.SECONDS);
    }
  }
}

private void schedulePlaylistSave ( ) { if ( ! mPlaylistLoading ) { if ( mPlaylistSavePending . compareAndSet ( false , true ) ) { mThreadPoolManager . scheduleOnce ( new PlaylistSaveTask ( ) , 2 , TimeUnit . SECONDS ) ; } } }
schedules a playlist save task . subsequent calls to this method will be ignored until the save event occurs , thus limiting repetitive playlist saving to a minimum .
