#ifndef CONTEXT_SWITCHER_TSAN_SUPPORT#define CONTEXT_SWITCHER_TSAN_SUPPORTextern"C"{// Fiber switching API.// - TSAN context for fiber can be created by __tsan_create_fiber// and freed by __tsan_destroy_fiber.// - TSAN context of current fiber or thread can be obtained// by calling __tsan_get_current_fiber.// - __tsan_switch_to_fiber should be called immediatly before switch// to fiber, such as call of swapcontext.// - Fiber name can be set by __tsan_set_fiber_name.void*__tsan_get_current_fiber(void);void*__tsan_create_fiber(unsignedflags);void__tsan_destroy_fiber(void*fiber);void__tsan_switch_to_fiber(void*fiber,unsignedflags);void__tsan_set_fiber_name(void*fiber,constchar*name);};#endif //CONTEXT_SWITCHER_TSAN_SUPPORT