News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

LOCK prefix question

Started by theunknownguy, November 08, 2010, 01:03:19 AM

Previous topic - Next topic

theunknownguy

Quote from: dedndave on November 09, 2010, 05:07:34 PM
i can see where you might use it while writing semaphores between threads

Yes and meaby on IO operations. I dont see any other application for the LOCK prefix.

Indeed if my sandbox would execute threads (not sure if adding this option) i would have to add something like the LOCK prefix but nothing more complex than set a flag for lock memory operations while the other is being executed.

Also the exception raised is: C000001Eh INVALID_LOCK_SEQUENCE.

Does somebody have a website / list of exceptions that might be raised on all possible cases?