[fpc-devel]locking all code and static data under go32v2
Aleksey V. Vaneev
picoder at sbis.komi.ru
Mon Apr 22 18:52:04 CEST 2002
Hello,
Is it possible to add procedures to Go32 (DPMI) unit that lock (and
unlock) all code and static data all at once (and if not, how one
can implement them)? This can be very useful, because this will
eliminate the need to have many locks and unlocks spreading over
the critical code. Since code and static data is not that huge in most
of the cases (under 1 MB I suppose), this will be efficient and safe
solution. Of course, dynamic allocations should be locked and
unlocked in the ordinary way.
But the best solution will be a per-unit automatic locking/unlocking
functions built-in into the compiler. Is it possible to do it this way?
Best regards,
Aleksey mailto:picoder at sbis.komi.ru
More information about the fpc-devel
mailing list