zsolt Messages: 702 Registered: December 2005 Location: Budapest, Hungary
Contributor
I use Thread class in my older code with Mutex protected containers as job queue.
Currently I prefer CoWork.
To notify GUI thread, I use PostCallback. It is a very easy way.
GUI is thread safe now, but I haven't tested GUI that way yet.
For HTTP, SMTP I created simple curl wrapper classes with progress support, but now you can use HttpRequest's WhenDo to notify user with a progress bar.
SQL: I use separate, per thread sessions, opened by the thread.
Serialization: Mutex and Mutex::Lock utility class are very useful.