adaptive serialize enter
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Sun May 4 04:13:33 PDT 2008
Sepherosa Ziehau wrote:
http://leaf.dragonflybsd.org/~sephe/lwkt_serialize.c.diff
+ crit_enter();
+ tsleep_interlock(s);
+ if (atomic_intr_cond_test(&s->interlock) != 0) {
+#ifdef PROFILE_SERIALIZER
+ s->sleep_cnt++;
+#endif
+ logslz(sleep_beg, s);
+ tsleep(s, 0, "slize", 0);
+ logslz(sleep_end, s);
+ }
+ crit_exit();
Are you allowed to call tsleep_interlock() without doing a tsleep afterwards?
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
More information about the Submit
mailing list