Have a look at unit syncobjs.