refactor: internal data structures and introduce release function
- Refactors internal data structures a bit. (Not there are only
FieldandEventobjects, whereEventis only a thin wrapper aroundFieldfor the API) - Introduces a
releasefunction to theEventclass to make it possible to release the buffer early, such that the get-thread can already start the new get call (if the put is finished as well).