N
norbert.thek
Hi
Can somebody tell me if I'm right or not
The attribute [MethodImpl(MethodImplOptions.Synchronized)]
Is like an lock(this) over the Method where i put this Attribute?!
If I have two methods like:
[MethodImpl(MethodImplOptions.Synchronized)]
void method1() {do something;}
[MethodImpl(MethodImplOptions.Synchronized)]
void method2() {do something else;}
And I call method1 and while it is still running method2.
The processing of method2 will only start after method1 is finished!
I hope I understand this right
(because if not I will get a serious synchronizing Problem :-/ )
regards
Norbert
Can somebody tell me if I'm right or not
The attribute [MethodImpl(MethodImplOptions.Synchronized)]
Is like an lock(this) over the Method where i put this Attribute?!
If I have two methods like:
[MethodImpl(MethodImplOptions.Synchronized)]
void method1() {do something;}
[MethodImpl(MethodImplOptions.Synchronized)]
void method2() {do something else;}
And I call method1 and while it is still running method2.
The processing of method2 will only start after method1 is finished!
I hope I understand this right
(because if not I will get a serious synchronizing Problem :-/ )
regards
Norbert