Re: Is there a way to protect a piece of critical code?
"Hendrik van Rooyen" <mail@xxxxxxxxxxxxxxx> writes:
I would like to do the following as one atomic operation:
1) Append an item to a list
2) Set a Boolean indicator
You could do it with locks as others have suggested, but maybe you
really want the Queue module.
.
Relevant Pages
- Re: Is there a way to protect a piece of critical code?
... Append an item to a list ... Set a Boolean indicator ... You could do it with locks as others have suggested, ... really want the Queue module. ... (comp.lang.python) - Re: Is there a way to protect a piece of critical code?
... I would like to do the following as one atomic operation: ... Set a Boolean indicator ... List .append() and .popwill be atomic in any Python though its not mentioned explicitely - otherwise it would be time to leave Python. ... ways, of which this is one, and I am curious as to if it is possible to prevent a thread swap from inside the thread. ... (comp.lang.python) - Re: insert
... Take a look at the help topic "Locking data", that's a good overview of how foxpro handles locks for several commands. ... And ther you can see that INSERT-SQL does do the same thing as APPEND BLANK: ... As foxpro works best by using buffering, INSERT INTO and infact most SQL other than SELECT-SQL is of minor use, because if it's about visually showing data for modification, controlsources of foxpros controls handle the update of fields, buffering handles the transaction of a single table BEGIN/END TRANSACTION handle the transactions with more tables and TableUpdate/Tablereverthandles the Commit or Cancellation of modifications. ... (microsoft.public.fox.programmer.exchange) - locked recordset in a single user environment
... I can append the records (it's ... a five level append) but, when I go to edit the top table ... of the append in a form the entire table locks up. ... Set myrecs = CurrentDb.OpenRecordset(strsql, ... (microsoft.public.access.modulesdaovba) - Re: Help With Trapping Lock File Errors
... Table and record locks should be only momentary. ... > an APPEND for instance, FoxPro locks the table only long enough to do the ... Of course you have to be careful to UNLOCK and this is where my ... (microsoft.public.fox.programmer.exchange) |
|