Вниз
Скачать: 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.039 c
14-1121412168
Ega23
2005-07-15 11:22
2005.08.07
Китай проснулся


14-1121578194
Магнум
2005-07-17 09:29
2005.08.07
Зрение


1-1121881713
Андрей Молчанов
2005-07-20 21:48
2005.08.07
Работа с указателями


3-1120212326
Apachi
2005-07-01 14:05
2005.08.07
EXEC в хранимых процедурах, как им пользоватся


8-1112617676
Kevin Brown
2005-04-04 16:27
2005.08.07
Конвертация из Gif в Bmp.




   Наверх