Destructor waits for write events to prevent any kernels from writing memory that has already been reused.
Definition at line 502 of file matrix_cl.hpp.