Вниз
Скачать: CL | DM;

Is it a thead-safe operation ?   Найти похожие ветки 

← →
Boguslaw   (2005-01-02 17:53) [0]

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?


← →
miek ©   (2005-01-03 10:25) [1]

Definitely not as I know. Use Windows messages for such purposes to ensure thread-safety.


← →
Boguslaw   (2005-01-03 11:13) [2]

"Use Windows messages for such purposes to ensure thread-safety."
But isn"t it what KOL is doing in background here ?


← →
thaddy   (2005-01-03 18:22) [3]

No, there can be contention, but you could use a simple spinlock assuming w2000 or higher.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: -0.975 c
1-1121197137
BBCHa
2005-07-12 23:38
2005.08.07
Создание письма в почтовой программе


1-1121868286
Gus
2005-07-20 18:04
2005.08.07
Компонент ScroolBar


14-1121404111
pasha_golub
2005-07-15 09:08
2005.08.07
Доклад о профессиях


3-1120164697
solenko
2005-07-01 00:51
2005.08.07
DBGrid + PopupMenu


1-1121821000
asprofi
2005-07-20 04:56
2005.08.07
Вот дописал свой видео плеер "AV Player v.1.3"




   Наверх