Create fence6.cpp