![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Is it a thead-safe operation ?
Boguslaw © (2005-01-02 17:53:00)I'd like to update listbox in my KOL-based program from another (working) thread.No problem.It works simply by :
memScan.Add('test') from another thread.Note: listbox is read-only all the time. Is it thread-safe assuming setting listbox readonly?
thaddy (2005-01-03 18:22:00) [1]No, there can be contention, but you could use a simple spinlock assuming w2000 or higher.
Boguslaw (2005-01-03 11:13:00) [2]"Use Windows messages for such purposes to ensure thread-safety."
But isn't it what KOL is doing in background here ?
miek (2005-01-03 10:25:00) [3]Definitely not as I know. Use Windows messages for such purposes to ensure thread-safety.