Click here to Skip to main content
15,559,733 members
Home / Discussions / C#
   

C#

 
GeneralRe: Write audio to USB Modem via COM Port Pin
ManojKumarShah20175-Nov-17 1:57
ManojKumarShah20175-Nov-17 1:57 
GeneralRe: Write audio to USB Modem via COM Port Pin
OriginalGriff5-Nov-17 2:05
mveOriginalGriff5-Nov-17 2:05 
GeneralRe: Write audio to USB Modem via COM Port Pin
ManojKumarShah20175-Nov-17 3:31
ManojKumarShah20175-Nov-17 3:31 
GeneralRe: Write audio to USB Modem via COM Port Pin
OriginalGriff5-Nov-17 3:40
mveOriginalGriff5-Nov-17 3:40 
GeneralRe: Write audio to USB Modem via COM Port Pin
ManojKumarShah20175-Nov-17 4:46
ManojKumarShah20175-Nov-17 4:46 
GeneralRe: Write audio to USB Modem via COM Port Pin
ManojKumarShah20175-Nov-17 5:10
ManojKumarShah20175-Nov-17 5:10 
QuestionMultithreaded function calls Pin
Kenneth Haugland4-Nov-17 5:41
mvaKenneth Haugland4-Nov-17 5:41 
AnswerRe: Multithreaded function calls Pin
Sascha Lefèvre4-Nov-17 7:13
professionalSascha Lefèvre4-Nov-17 7:13 
As long as your threads don't modify the data they're reading it's all perfectly thread-safe. No need to clone the data or to move DoCalcualtions. Moving DoCalcualtions into the PipeSection class wouldn't make a lot of sense anyway because it doesn't operate on a single PipeSection instance.

I assume in practice your input data set is a lot larger so threading is actually called for? There are of course alternative ways of doing this but I don't think there's an objectively better way. You're aware that you're ignoring the CancellationToken in DoCalcualtions ?
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Multithreaded function calls Pin
Kenneth Haugland4-Nov-17 7:49
mvaKenneth Haugland4-Nov-17 7:49 
GeneralRe: Multithreaded function calls Pin
Sascha Lefèvre4-Nov-17 8:01
professionalSascha Lefèvre4-Nov-17 8:01 
GeneralRe: Multithreaded function calls Pin
Kenneth Haugland4-Nov-17 8:10
mvaKenneth Haugland4-Nov-17 8:10 
GeneralRe: Multithreaded function calls Pin
Sascha Lefèvre4-Nov-17 8:23
professionalSascha Lefèvre4-Nov-17 8:23 
QuestionHow to make the ListView to display each thumbnail immediately after it's loaded? [solved] Pin
alin14-Nov-17 4:02
alin14-Nov-17 4:02 
AnswerRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Dave Kreskowiak4-Nov-17 4:49
mveDave Kreskowiak4-Nov-17 4:49 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 4:51
alin14-Nov-17 4:51 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Dave Kreskowiak4-Nov-17 5:17
mveDave Kreskowiak4-Nov-17 5:17 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 5:06
alin14-Nov-17 5:06 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Dave Kreskowiak4-Nov-17 5:19
mveDave Kreskowiak4-Nov-17 5:19 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 6:57
alin14-Nov-17 6:57 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Sascha Lefèvre4-Nov-17 7:27
professionalSascha Lefèvre4-Nov-17 7:27 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 8:05
alin14-Nov-17 8:05 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Sascha Lefèvre4-Nov-17 8:13
professionalSascha Lefèvre4-Nov-17 8:13 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 8:22
alin14-Nov-17 8:22 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
Sascha Lefèvre4-Nov-17 8:25
professionalSascha Lefèvre4-Nov-17 8:25 
GeneralRe: How to make the ListView to display each thumbnail immediately after it's loaded? Pin
alin14-Nov-17 8:30
alin14-Nov-17 8:30 

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.