Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Resizable controls Pin
Sakhalean25-May-10 18:46
Sakhalean25-May-10 18:46 
Questionshort and long worker thread VS sincronization and global efficiency Pin
Russell'25-May-10 4:44
Russell'25-May-10 4:44 
AnswerRe: short and long worker thread VS sincronization and global efficiency Pin
Russell'25-May-10 4:49
Russell'25-May-10 4:49 
AnswerRe: short and long worker thread VS sincronization and global efficiency Pin
Aescleal25-May-10 4:52
Aescleal25-May-10 4:52 
GeneralRe: short and long worker thread VS sincronization and global efficiency Pin
Russell'25-May-10 5:59
Russell'25-May-10 5:59 
GeneralRe: short and long worker thread VS sincronization and global efficiency Pin
Aescleal25-May-10 8:26
Aescleal25-May-10 8:26 
GeneralRe: short and long worker thread VS sincronization and global efficiency Pin
Russell'25-May-10 21:33
Russell'25-May-10 21:33 
AnswerRe: short and long worker thread VS sincronization and global efficiency Pin
David Crow25-May-10 7:26
David Crow25-May-10 7:26 
Russell' wrote:
A simple solution I found is to start in the main-thread a loop that do a simple Sleep (for some ms) and then checks some flags that the worker-threads sets when ending. When it understand that all the threads are end it make some computations and start all again.


There are several MFC synchronization classes just for this.

Anytime you have to use Sleep() to get the desired result, it is most likely a bad design.

"One man's wage rise is another man's price increase." - Harold Wilson

"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

"Man who follows car will be exhausted." - Confucius


Questionabout Memory-Mapped Files do with the big file. Pin
lxlenovostar25-May-10 3:23
lxlenovostar25-May-10 3:23 
AnswerRe: about Memory-Mapped Files do with the big file. [modified] Pin
«_Superman_»25-May-10 5:44
professional«_Superman_»25-May-10 5:44 
Question"Launch Now" is not working Pin
rahul.kulshreshtha25-May-10 1:10
rahul.kulshreshtha25-May-10 1:10 
AnswerRe: "Launch Now" is not working Pin
ThatsAlok25-May-10 1:51
ThatsAlok25-May-10 1:51 
GeneralRe: "Launch Now" is not working Pin
rahul.kulshreshtha25-May-10 2:46
rahul.kulshreshtha25-May-10 2:46 
AnswerRe: "Launch Now" is not working Pin
Aescleal25-May-10 2:58
Aescleal25-May-10 2:58 
GeneralRe: "Launch Now" is not working Pin
rahul.kulshreshtha25-May-10 3:45
rahul.kulshreshtha25-May-10 3:45 
QuestionRe: "Launch Now" is not working [modified] Pin
rahul.kulshreshtha25-May-10 21:10
rahul.kulshreshtha25-May-10 21:10 
QuestionListCtrl SetItemText Pin
Sakhalean25-May-10 0:07
Sakhalean25-May-10 0:07 
QuestionRe: ListCtrl SetItemText Pin
CPallini25-May-10 0:41
mveCPallini25-May-10 0:41 
AnswerRe: ListCtrl SetItemText Pin
Sakhalean25-May-10 0:46
Sakhalean25-May-10 0:46 
QuestionRe: ListCtrl SetItemText Pin
CPallini25-May-10 0:53
mveCPallini25-May-10 0:53 
AnswerRe: ListCtrl SetItemText Pin
Sakhalean25-May-10 1:01
Sakhalean25-May-10 1:01 
AnswerRe: ListCtrl SetItemText Pin
Sakhalean25-May-10 1:42
Sakhalean25-May-10 1:42 
GeneralRe: ListCtrl SetItemText Pin
CPallini25-May-10 1:44
mveCPallini25-May-10 1:44 
GeneralRe: ListCtrl SetItemText Pin
Sakhalean25-May-10 1:58
Sakhalean25-May-10 1:58 
GeneralRe: ListCtrl SetItemText Pin
Sakhalean25-May-10 2:23
Sakhalean25-May-10 2:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.