Click here to Skip to main content
15,888,113 members
Home / Discussions / C#
   

C#

 
QuestionDoes this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 0:15
Member 120616005-Feb-16 0:15 
AnswerRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 7:16
professionalEddy Vluggen5-Feb-16 7:16 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 7:43
Member 120616005-Feb-16 7:43 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 9:44
professionalEddy Vluggen5-Feb-16 9:44 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 10:12
Member 120616005-Feb-16 10:12 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 11:16
professionalEddy Vluggen5-Feb-16 11:16 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 11:27
Member 120616005-Feb-16 11:27 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Eddy Vluggen5-Feb-16 23:05
professionalEddy Vluggen5-Feb-16 23:05 
Member 12061600 wrote:
will the output be what I expected?
Yes, as the read would have to finish before something else can be done with the port.

Which HASP dongle are you using? Don't they go by the name "sentinel" these days?
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz5-Feb-16 12:50
mveGerry Schmitz5-Feb-16 12:50 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 15:00
mvePIEBALDconsult5-Feb-16 15:00 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz5-Feb-16 15:50
mveGerry Schmitz5-Feb-16 15:50 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 15:53
mvePIEBALDconsult5-Feb-16 15:53 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz5-Feb-16 16:13
mveGerry Schmitz5-Feb-16 16:13 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 16:35
mvePIEBALDconsult5-Feb-16 16:35 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz5-Feb-16 16:41
mveGerry Schmitz5-Feb-16 16:41 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 16:45
mvePIEBALDconsult5-Feb-16 16:45 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 21:57
Member 120616005-Feb-16 21:57 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz6-Feb-16 6:05
mveGerry Schmitz6-Feb-16 6:05 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616006-Feb-16 7:13
Member 120616006-Feb-16 7:13 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Gerry Schmitz6-Feb-16 7:20
mveGerry Schmitz6-Feb-16 7:20 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616006-Feb-16 7:57
Member 120616006-Feb-16 7:57 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult5-Feb-16 15:00
mvePIEBALDconsult5-Feb-16 15:00 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616005-Feb-16 21:55
Member 120616005-Feb-16 21:55 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
PIEBALDconsult6-Feb-16 2:18
mvePIEBALDconsult6-Feb-16 2:18 
GeneralRe: Does this ensure function1 and function2 use my class in thread safe way? Pin
Member 120616006-Feb-16 4:26
Member 120616006-Feb-16 4:26 

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.