DragonFly submit List (threaded) for 2008-05
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: adaptive serialize enter
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 / \
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]