Главная страница
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.045 c
1-1121892228
ronyn
2005-07-21 00:43
2005.08.07
Как записать в реестр параметр типа DWORD?


6-1114670407
Pavelkq
2005-04-28 10:40
2005.08.07
NMFTP + Nlist = Range check error


14-1120217146
Kerk
2005-07-01 15:25
2005.08.07
Яндекс. Статистика запросов. Эксперимент.


11-1100526440
Владимир Кладов
2004-11-15 16:47
2005.08.07
TPCAsm - ассемблирует на лету


14-1121339167
alex-drob
2005-07-14 15:06
2005.08.07
Delphi 2005 не могу скомпилировать