DragonFly submit List (threaded) for 2008-05
DragonFly BSD
DragonFly submit List (threaded) for 2008-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: adaptive serialize enter


From: "Simon 'corecode' Schubert" <corecode@xxxxxxxxxxxx>
Date: Sun, 04 May 2008 13:12:20 +0200

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]