Attention event blocked by handlers?

I raise an event from managed C ++ that is handled by a C # application. Is the C # event handler running in the same thread that was raised from C ++ ??

In other words, does event blocking raise for C ++ until it is completely handled by C #?

+3
source share
2 answers

The event handler is called synchronously by default in .NET, and since your code is managed by C ++ and C #, this is all ".NET".

, , #, Thread, , ThreadPool, Delegate, . , # , M++ .

, , , ++ , . , - CancelEventArgs.

+2

. , :)

" "!

0

Source: https://habr.com/ru/post/1750374/


All Articles