4 ms·
> After that, 510 bytes are used for the SHARED lock. A byte range is used here to accommodate older Windows versions with mandatory locks. I was curious how o
by ripley12 4y ago
> After that, 510 bytes are used for the SHARED lock. A byte range is used here to accommodate older Windows versions with mandatory locks.
I was curious how old, and... wow, that code is for Windows versions that predate the NT kernel (Win95/98/ME). I'm surprised that it's still around, but the comment does a great job of explaining it.
https://github.com/sqlite/sqlite/blob/3cf46ee508e97b46736a2607ded9c84c2c16229f/src/os.h#L104-L158 https://github.com/sqlite/sqlite/blob/3cf46ee508e97b46736a26...
- icedchai 4y agoThe NT kernel is older than you think and predates Windows 95. NT 3.1 was released way back in 93!
- ripley12 4y agoTrue, I misspoke; I was clumsily trying to describe the time before the NT kernel was used in consumer versions of Windows.
- icedchai 4y agoYes. And I personally also consider NT 4.0 the first "mainstream" NT, even though it wasn't quite consumer. I didn't see a lot of NT 3.x in the wild.