Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Resources referenced by an index. Examples were provided in the post you replied to. Threads, processes, file handles, mutexes, etc. Or in an embedded context could be memory addresses for control registers etc. Many of these require functions to acquire and release, and wrapping that integer into a moveable class allows its ownership and lifetime to be carefully and safely managed.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: