add double buffer thread class