Public Member Functions |
| MDL_thread (const char *table_name, enum_mdl_type mdl_type, Notification *lock_grabbed, Notification *release_locks, Notification *lock_blocked, Notification *lock_released) |
virtual void | run () |
void | ignore_notify () |
virtual bool | notify_shared_lock (MDL_context_owner *in_use, bool needs_thr_lock_abort) |
virtual void | enter_cond (mysql_cond_t *cond, mysql_mutex_t *mutex, const PSI_stage_info *stage, PSI_stage_info *old_stage, const char *src_function, const char *src_file, int src_line) |
MDL_context & | get_mdl_context () |
int | start () |
void | join () |
pthread_t | thread_id () const |
virtual void | exit_cond (const PSI_stage_info *stage, const char *src_function, const char *src_file, int src_line) |
virtual int | is_killed () |
virtual THD * | get_thd () |
Detailed Description
Definition at line 141 of file mdl-t.cc.
Member Function Documentation
Enter a condition wait. For enter_cond()
/ exit_cond()
to work the mutex must be held before enter_cond()
; this mutex is then released by exit_cond()
. Usage must be: lock mutex; enter_cond(); your code; exit_cond().
- Parameters
-
| cond | the condition to wait on |
| mutex | the associated mutex |
[in] | stage | the stage to enter, or NULL |
[out] | old_stage | the previous stage, or NULL |
| src_function | function name of the caller |
| src_file | file name of the caller |
| src_line | line number of the caller |
- See Also
- ENTER_COND(), THD::enter_cond()
-
EXIT_COND(), THD::exit_cond()
Reimplemented from Test_MDL_context_owner.
Definition at line 181 of file mdl-t.cc.
virtual bool mdl_unittest::MDL_thread::notify_shared_lock |
( |
MDL_context_owner * |
in_use, |
|
|
bool |
needs_thr_lock_abort |
|
) |
| |
|
inlinevirtual |
The documentation for this class was generated from the following file: