Enerccio / ewlc

Wayland compositor library - extended
MIT License
20 stars 3 forks source link

[CLOSED] Consider using handles instead of pointers for resources #10

Closed Enerccio closed 7 years ago

Enerccio commented 7 years ago

Issue by Cloudef Monday Dec 08, 2014 at 16:11 GMT Originally opened as https://github.com/Cloudef/wlc/issues/2


This makes sense due to uncontrolled environment where dangling pointers are real problem. Handles would be simple indexes. This gives additional bonus that the underlying memory management could be optimized for iterations.

Enerccio commented 7 years ago

Comment by Cloudef Thursday Feb 26, 2015 at 13:06 GMT


Working on this now. Should get rid of most if not all hacks and not so nice things in wlc (excluding some internal apis, like platform abstraction that could be nicer).

Changes public API dramatically as well, however should be easier to wrap to different languages as result.

Enerccio commented 7 years ago

Comment by Cloudef Saturday Mar 07, 2015 at 11:15 GMT


Done @ refactor branch.