Thread Safety

Added by Aaron Wright 8 days ago

I'm not 100% clear on the thread safety guarantees when using Wt::WServer::post(...).

If I post 2 events to the same session (Wt::WApplication) using Wt::WServer::post(...), is there a guarantee that the events will be handled serially, or is it possible for them to occur parallelly?


Replies (2)

RE: Thread Safety - Added by Koen Deforche 8 days ago

Since both need to take the session's lock, they will be serialized.

RE: Thread Safety - Added by Aaron Wright 2 days ago

Thanks for clearing that up.

(1-2/2)