Browse Source

cleanup os_event

pull/1079/head
Eugene Kosov 7 years ago
committed by Sergey Vojtovich
parent
commit
0dafcf529c
  1. 14
      storage/innobase/os/os0event.cc

14
storage/innobase/os/os0event.cc

@ -31,8 +31,6 @@ Created 2012-09-23 Sunny Bains
#include <synchapi.h>
#endif /* _WIN32 */
#include <list>
/** The number of microsecnds in a second. */
static const ulint MICROSECS_IN_A_SECOND = 1000000;
@ -44,9 +42,6 @@ typedef CONDITION_VARIABLE os_cond_t;
typedef pthread_cond_t os_cond_t;
#endif /* _WIN32 */
typedef std::list<os_event_t, ut_allocator<os_event_t> > os_event_list_t;
typedef os_event_list_t::iterator event_iter_t;
/** InnoDB condition variable. */
struct os_event {
os_event(const char* name) UNIV_NOTHROW;
@ -234,9 +229,6 @@ private:
os_cond_t cond_var; /*!< condition variable is
used in waiting for the event */
public:
event_iter_t event_iter; /*!< For O(1) removal from
list */
protected:
// Disable copying
os_event(const os_event&);
@ -544,8 +536,6 @@ os_event_destroy(
os_event_t& event) /*!< in/own: event to free */
{
if (event != NULL) {
UT_DELETE(event);
event = NULL;
}
UT_DELETE(event);
event = NULL;
}
Loading…
Cancel
Save