Changeset 5984


Ignore:
Timestamp:
Mar 7, 2007, 5:56:01 AM (18 years ago)
Author:
Gary Byers
Message:

Determing *spin-lock-tries* at launch time, based on cpu-count.
YIELD moved here, does #_sched_yield rather than something lower-level.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/linux-files.lisp

    r5919 r5984  
    11311131                  1)))
    11321132            )))
     1133
     1134(def-load-pointers spin-count ()
     1135  (if (eql 1 (cpu-count))
     1136    (setq *spin-lock-tries* 1)
     1137    (setq *spin-lock-tries 1024)))
     1138
     1139(defun yield ()
     1140  (#_sched_yield))
Note: See TracChangeset for help on using the changeset viewer.