Click here to Skip to main content
16,007,126 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: callback priority Pin
CPallini22-Jun-08 21:54
mveCPallini22-Jun-08 21:54 
GeneralRe: callback priority Pin
rp_suman22-Jun-08 22:12
rp_suman22-Jun-08 22:12 
QuestionRe: callback priority Pin
CPallini22-Jun-08 22:26
mveCPallini22-Jun-08 22:26 
AnswerRe: callback priority Pin
rp_suman22-Jun-08 22:38
rp_suman22-Jun-08 22:38 
GeneralRe: callback priority Pin
CPallini22-Jun-08 22:47
mveCPallini22-Jun-08 22:47 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 0:47
rp_suman23-Jun-08 0:47 
GeneralRe: callback priority Pin
Cedric Moonen23-Jun-08 2:02
Cedric Moonen23-Jun-08 2:02 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 4:17
rp_suman23-Jun-08 4:17 
Hi,

I will try If I can use critical section.

Problem is data is written into a single ring buffer.
If I use critical section, then other thread cannot access any part of ring buffer until write finish.

I want to let other thread to read the messages written completely by write thread(callback) and not current message being written.

One way is, I can check write pointer location, if the message not complete, then reset the read pointer to current message starting byte and check for complete message again.

Thanks for your help, I will try this tomorrow in office and update after I fix it.

Thanks & Regards,
Suman

--
"Programming is an art that fights back!"

GeneralRe: callback priority Pin
Cedric Moonen23-Jun-08 4:21
Cedric Moonen23-Jun-08 4:21 
GeneralRe: callback priority Pin
rp_suman23-Jun-08 17:11
rp_suman23-Jun-08 17:11 
QuestionProblem in accessing nodes of a list in Release build Pin
Aryan S22-Jun-08 21:30
Aryan S22-Jun-08 21:30 
QuestionRe: Problem in accessing nodes of a list in Release build [modified] Pin
CPallini22-Jun-08 21:44
mveCPallini22-Jun-08 21:44 
AnswerRe: Problem in accessing nodes of a list in Release build Pin
Cedric Moonen22-Jun-08 21:45
Cedric Moonen22-Jun-08 21:45 
GeneralRe: Problem in accessing nodes of a list in Release build Pin
Aryan S22-Jun-08 22:48
Aryan S22-Jun-08 22:48 
GeneralRe: Problem in accessing nodes of a list in Release build Pin
Cedric Moonen23-Jun-08 2:09
Cedric Moonen23-Jun-08 2:09 
QuestionOnKillfocus on closing Dialog not called --- PLZ GIVE SUGGESTION!! Pin
Shaileshhex22-Jun-08 21:05
Shaileshhex22-Jun-08 21:05 
AnswerRe: OnKillfocus on closing Dialog not called --- PLZ GIVE SUGGESTION!! Pin
David Crow23-Jun-08 3:32
David Crow23-Jun-08 3:32 
QuestionHuge array processing. Pin
Rustik22-Jun-08 21:04
Rustik22-Jun-08 21:04 
AnswerRe: Huge array processing. Pin
Cedric Moonen22-Jun-08 21:22
Cedric Moonen22-Jun-08 21:22 
GeneralRe: Huge array processing. Pin
Rustik22-Jun-08 22:44
Rustik22-Jun-08 22:44 
GeneralRe: Huge array processing. Pin
CPallini22-Jun-08 23:08
mveCPallini22-Jun-08 23:08 
GeneralRe: Huge array processing. Pin
KASR123-Jun-08 1:52
KASR123-Jun-08 1:52 
GeneralRe: Huge array processing. Pin
CPallini23-Jun-08 2:02
mveCPallini23-Jun-08 2:02 
GeneralRe: Huge array processing. Pin
Rajesh R Subramanian27-Jun-08 0:25
professionalRajesh R Subramanian27-Jun-08 0:25 
GeneralRe: Huge array processing. Pin
CPallini27-Jun-08 2:09
mveCPallini27-Jun-08 2:09 

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.