Deluge Script - Atomic test & set operation with concurrent users

Deluge Script - Atomic test & set operation with concurrent users

Hello,

I have an application which will be used by several users simultaneously.
Each user can edit the same data e.g. same record may be removed, updated, etc.

Is there some method to address the problem (i.e. race-condition)?

Are there any atomic methods that provide "test&set" funcionality?