I wonder whether it would be possible to patch affinity support into the underlying TThread object? OTOH I'm currently looking at FPC's tmt1 running under Linux on a 14-processor system and I can see it being spread fairly evenly, so this is getting pretty specialist.

Micha Nelissen wrote:
Marco Alvarado wrote:
I'm using SetThreadAffinityMask() on Windows to set the processor for
a given TThread object. What can I use on Linux?

On linux you could use sched_setaffinity, but I don't think fpc has
wrapped that yet. Linux man page says it's linux specific.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to