Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-04

locking all code and static data under go32v2

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Aleksey V. Vaneev

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

Reply by email