added a critical section to prevent from accessing shared memory at the same time.
added a critical section to prevent from accessing shared memory at the same time.
nagyistoce/openvgr,nagyistoce/openvgr,nagyistoce/openvgr