IMPORTANT: A callback is only valid when invoked on the thread which created it. The results are undefined (and typically bad) when a callback is passed out to the operating system (or other code) in such a way that the callback is called from a different thread.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|