1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- #ifndef SERVICE_THREAD_SCHEDULER_INCLUDED
- #define SERVICE_THREAD_SCHEDULER_INCLUDED
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct Connection_handler_functions;
- struct THD_event_functions;
- extern struct my_thread_scheduler_service {
- int (*connection_handler_set)(struct Connection_handler_functions *,
- struct THD_event_functions *);
- int (*connection_handler_reset)();
- } *my_thread_scheduler_service;
- #ifdef MYSQL_DYNAMIC_PLUGIN
- #define my_connection_handler_set(F, M) \
- my_thread_scheduler_service->connection_handler_set((F), (M))
- #define my_connection_handler_reset() \
- my_thread_scheduler_service->connection_handler_reset()
- #else
- int my_connection_handler_set(struct Connection_handler_functions *chf,
- struct THD_event_functions *tef);
- int my_connection_handler_reset();
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|