Click here to Skip to main content
13,799,766 members

C / C++ / MFC

 
GeneralRe: Thread synchronization problem Pin
CPallini11-Sep-18 4:23
mvpCPallini11-Sep-18 4:23 
AnswerRe: Thread synchronization problem Pin
leon de boer10-Sep-18 23:08
memberleon de boer10-Sep-18 23:08 
GeneralRe: Thread synchronization problem Pin
samzcs11-Sep-18 3:50
membersamzcs11-Sep-18 3:50 
GeneralRe: Thread synchronization problem Pin
leon de boer11-Sep-18 6:05
memberleon de boer11-Sep-18 6:05 
GeneralRe: Thread synchronization problem Pin
11917640 Member 11-Sep-18 20:53
member11917640 Member 11-Sep-18 20:53 
GeneralRe: Thread synchronization problem Pin
samzcs12-Sep-18 9:12
membersamzcs12-Sep-18 9:12 
GeneralRe: Thread synchronization problem Pin
leon de boer12-Sep-18 19:31
memberleon de boer12-Sep-18 19:31 
GeneralRe: Thread synchronization problem Pin
11917640 Member 12-Sep-18 19:58
member11917640 Member 12-Sep-18 19:58 
If your system behaves as you describe, this is not synchronization problem. Task A and B are actually not tasks, these are synchronous functions. No parallel execution, every function has exclusive access to all variables (resources). Specifically, in your last code fragment:
rcvd = true;
if((rcvd == false)
{
    // this code is never executed
    receivenotify(chid, rcv_buffer, sizeof(rcv_buffer), dataCB,0);
}

AnswerRe: Thread synchronization problem Pin
«_Superman_»23-Sep-18 23:26
professional«_Superman_»23-Sep-18 23:26 
QuestionBreak when address reading Pin
Member 130813699-Sep-18 16:47
memberMember 130813699-Sep-18 16:47 
AnswerRe: Break when address reading Pin
Victor Nijegorodov10-Sep-18 3:04
memberVictor Nijegorodov10-Sep-18 3:04 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 16:45
memberMember 1308136910-Sep-18 16:45 
AnswerRe: Break when address reading Pin
leon de boer10-Sep-18 3:12
memberleon de boer10-Sep-18 3:12 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 16:49
memberMember 1308136910-Sep-18 16:49 
AnswerRe: Break when address reading Pin
Richard Andrew x6410-Sep-18 9:17
professionalRichard Andrew x6410-Sep-18 9:17 
GeneralRe: Break when address reading Pin
Member 1308136910-Sep-18 16:50
memberMember 1308136910-Sep-18 16:50 
AnswerRe: Break when address reading Pin
«_Superman_»23-Sep-18 23:30
professional«_Superman_»23-Sep-18 23:30 
Questionconfusion about fonts in Windows Pin
Alexander Kindel6-Sep-18 9:43
memberAlexander Kindel6-Sep-18 9:43 
AnswerRe: confusion about fonts in Windows Pin
leon de boer6-Sep-18 18:12
memberleon de boer6-Sep-18 18:12 
GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel6-Sep-18 19:21
memberAlexander Kindel6-Sep-18 19:21 
GeneralRe: confusion about fonts in Windows Pin
leon de boer7-Sep-18 9:41
memberleon de boer7-Sep-18 9:41 
GeneralRe: confusion about fonts in Windows Pin
Alexander Kindel11-Sep-18 14:24
memberAlexander Kindel11-Sep-18 14:24 
AnswerRe: confusion about fonts in Windows Pin
Richard Andrew x649-Sep-18 9:17
professionalRichard Andrew x649-Sep-18 9:17 
GeneralRe: confusion about fonts in Windows Pin
leon de boer9-Sep-18 19:04
memberleon de boer9-Sep-18 19:04 
Questionneed help with unix commands Pin
Member 139744595-Sep-18 14:24
memberMember 139744595-Sep-18 14:24 

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.


Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.181214.1 | Last Updated 14 Dec 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid