AstDB: lock access to the database or records for other threads

Greetings to you, colleagues!

Tell me, please, one aspect, the description of which I did not find in the documentation.

Is it possible to perform locking of a record in AstDB, or access to the database as a whole, while working with the recording?

For example, I store the shared value in the database. It can be changed by different threads belonging to a certain logical group. Upon reaching a certain value, the value must be reset to zero. These are several actions with the base, and they should not be done by two threads simultaneously.

Thank you in advance for the answer,

You could use the LOCK[1] dialplan function, otherwise no there is nothing inherently built into AstDB.


1 Like