Waits for read and write events to finish and clears the read, write, and read/write event stacks.
Definition at line 172 of file matrix_cl.hpp.