Use global synchronization objects, to be able to use it in different