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

> Didn't 16-bit Windows and classic Mac OS do something similar?

I assume this is what `{Local,Global}{Lock,Unlock}` were for when combined with `{Local,Global}Alloc({L,G}MEM_MOVEABLE)`

Similar idioms occasionally persist in modern code - e.g. when dealing with FFI in GCed languages (C#'s `fixed` statement pins memory in place.)



The lock/unlock metaphor is also used when sharing buffers with video or a/v apis in Windows.

And the "safe array" type from COM/OLE.


And macOS too, with CVPixelBuffer.




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

Search: