[MERGE] FreeBSD concurrency detection

Vincent Ladeuil v.ladeuil+lp at free.fr
Fri Jun 5 14:42:50 BST 2009


>>>>> "fullermd" == Matthew D Fuller <fullermd at over-yonder.net> writes:

    fullermd> On Fri, Jun 05, 2009 at 01:13:18PM +0200 I heard the voice of
    fullermd> Vincent Ladeuil, and lo! it spake thus:
    >> 
    >> So the question is: Matthew, what is your hardware, is the above
    >> taken into account ?

    fullermd> hw.ncpu is the number of available cores, yes.


    >> You should know better than me here if
    >> sys.platform.startswith('freebsd') is a valid alternative.

    fullermd> I imagine it would be, if it makes a difference.  They're all
    fullermd> "freebsd\d".

Ok, that's enough to upcast my vote to

BB:approve

    >> Also, could that be applied to openbsd ? Netbsd ? mymombsd ?

    fullermd> I don't know if the sysctl name is the same on them or not

Well, since your patch applies to all, we'll know if it breaks
then and fix it accordingly (the fall-through is always 1
otherwise).

    Vincent



More information about the bazaar mailing list