Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2005.08.07;
Скачать: 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 вся ветка

Текущий архив: 2005.08.07;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.024 c
1-1121829268
Алексей Петухов
2005-07-20 07:14
2005.08.07
DHTML Editor


1-1121761002
Maniak48
2005-07-19 12:16
2005.08.07
Выделение слова в TWebbrowser по клику правой кнопкой мыши.


1-1121862001
Alex_Bredin
2005-07-20 16:20
2005.08.07
"Залипающая" кнопка


1-1121769566
Destroyer
2005-07-19 14:39
2005.08.07
Как вывести текст вертикально?


6-1114747447
Valera
2005-04-29 08:04
2005.08.07
IdIcmpClient и многопоточность