Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Does Object Manager lock objects, such as arrays, when writing to them?

0
Posted

Does Object Manager lock objects, such as arrays, when writing to them?

0

There is no write locking on scalar objects. The mode flag on the OMfind_subobj API call should serve this purpose, but is not. The mode flag on Object Manager array routines (such as OMret_array_ptr) does do write locking. If the mode flag is set to WR (write) or RW (read-write), the Object Manager will not let you write to the array. The array is unlocked when an ARRfree is executed on it. However, since AVS/Express is single threaded, this won’t generally be an issue. Typically, a module executes, gets the array, frees it when it’s done and then returns. Only then does the next module execute.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.