• Marc Alff's avatar
    Bug#55087 Performance schema: optimization of the instrumentation interface · 6090cbe5
    Marc Alff authored
    This change is for performance optimization.
    
    Fixed the performance schema instrumentation interface as follows:
    - simplified mysql_unlock_mutex()
    - simplified mysql_unlock_rwlock()
    - simplified mysql_cond_signal()
    - simplified mysql_cond_broadcast()
    
    Changed the get_thread_XXX_locker apis to have one extra parameter,
    to provide memory to the instrumentation implementation.
    This API change allows to use memory provided by the caller,
    to avoid having to use thread local storage.
    Using this extra parameter will be done in a separate fix,
    this change is for the interface only.
    
    Adjusted all the code and unit tests accordingly.
    6090cbe5
sync0sync.ic 10.6 KB