What is the lock function I see in CRT source files?
Printable View
What is the lock function I see in CRT source files?
What do you mean by "CRT source files"? When I google I get lots of Cathode Ray Tube hits, but I don't think that's what you mean.
C runtime. like crt0.c
Where do you see lock() used? Maybe it locks the screen or something.
I really don't know what it does.
In crt0dat.cCode:void __cdecl _lockexit (
void
)
{
_mlock(_EXIT_LOCK1);
}
It should has something to do with execution mechanism.
It locks memory pages.
http://www.freebsd.org/cgi/man.cgi?q...SE&format=html