Feb 09, 2018
12:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 09, 2018
12:10 AM
I start a thread to recive the data.
In the thread, there are 2 buffers. BufA and BufB. When one of them is full, the other one will collect the data.
I'll do this loop with WaitForXfer, FinishDataXfer,BeginDataXfer。
BeginDataXfer()
while(1) {
if(flag) {
buf=bufA
buf_next=bufB
}else{
buf_nex=bufA
buf=bufB
}
flag=!flag
WaitForXfer(buf)
FinishDataXfer(buf)
BeginDataXfer(buf_next)
//..........
}
I found that, Once the FinishDataXfer fails, the data you received next time is not in buf, but in buf_next.
Is that possible?
Solved! Go to Solution.
1 Solution
Anonymous
Not applicable
Mar 02, 2018
03:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 02, 2018
03:08 AM
2 Replies