Вниз
Скачать: 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.023 c
1-1121601356
Blaster
2005-07-17 15:55
2005.08.07
Comp и Currency


1-1121935230
AGENT
2005-07-21 12:40
2005.08.07
Курсоры


4-1118208222
ANB
2005-06-08 09:23
2005.08.07
Как программно кликнуть по пункту Popup меню другого приложения ?


1-1121719884
sybrex
2005-07-19 00:51
2005.08.07
самая подходящяя сортировка


4-1118051080
Андрей Жук
2005-06-06 13:44
2005.08.07
Аналог делфийского Format в WinAPI




   Наверх