Implement barrier and double barrier