Add note about konan.initRuntimeIfNeeded() (#1326)

Initing the konan runtime is mandatory if your callback runs in a different thread (e.g. in a thread-per-connection model), that should be documented!
This commit is contained in:
Jonas Seibert
2018-02-14 21:37:34 +01:00
committed by Nikolay Igotti
parent 3dc88795d8
commit b42e9e9c80
+3
View File
@@ -370,6 +370,9 @@ Note that some function types are not supported currently. For example,
it is not possible to get pointer to function that receives or returns structs
by value.
If the callback doesn't run in the main thread it is mandatory to init the konan runtime
by calling `konan.initRuntimeIfNeeded()`.
#### Passing user data to callbacks ####
Often C APIs allow passing some user data to callbacks. Such data is usually