void SetCaptureThreadId(ThreadId captureThreadId);
SetCaptureThreadId sets the thread id that is expected to call capture. An assert will trigger (in debug mode) if a thread other than this thread calls capture, or otherwise reads/modifies the context data. This only needs to be called explicitly if it is different than the thread that created the context.
Parameters |
Description |
ThreadId captureThreadId |
Expected thread Id that will call Capture. |