in reply to Database queue logic
Once you have the object you can DELETE at leisure, so wrapping a MUTEX around the SELECT would ensure the safety you're looking for (look around for documentation on inter-process communications, or the chapter in the Camel book).
Update: I'm being downvoted on this one.. it seems my experience in multitasking embedded and workstation environments is causing consternation for the readers of this thread...
Update 2: As Foxcub correctly points out below, it is futile to protect the SELECT using a MUTEX but not wrapping the DELETE in the same call. Thus I am completely wrong, my logic is entirely flawed. Apologies.
Update 3: Added readmore tags.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Database queue logic
by Marcello (Hermit) on Jun 14, 2005 at 12:14 UTC | |
by monarch (Priest) on Jun 14, 2005 at 12:41 UTC | |
by Tanalis (Curate) on Jun 14, 2005 at 13:20 UTC |