summaryrefslogtreecommitdiff
path: root/sys/src/9/port/qlock.c
AgeCommit message (Collapse)Author
2015-08-02kernel: cleanup qlock.c to use nil instead of 0 for pointerscinap_lenrek
2014-06-05kernel: dont use atomic increment for Proc.nlocks, maintain Lock.m for ↵cinap_lenrek
lock(), use uintptr intstead of long for pc values change Proc.nlocks from Ref to int and just use normal increment and decrelemt as done in erik quanstros 9atom. It is not clear why we used atomic increment in the fist place as even if we get preempted by interrupt and scheduled before we write back the incremented value, it shouldnt be a problem and we'll just continue where we left off as our process is the only one that can write to it. Yoann Padioleau found that the Mach pointer Lock.m wasnt maintained consistently for lock() vs canlock() and ilock(). Fixed. Use uintptr instead of ulong for maxlockpc, maxilockpc and ilockpc debug variables.
2014-04-29kernel: always reset notepending in eqlock, handle forceclosefgrp in eqlockscinap_lenrek
2012-03-28panic: trailing newlinescinap_lenrek
2012-02-05more checking for eqlockcinap_lenrek
2012-01-15eqlock: cleanupcinap_lenrek
2012-01-09eqlock: dont rely on notepending flag when detecting eqlock interruptioncinap_lenrek
2011-11-02eqlock: fix postnote/qunlock racecinap_lenrek
2011-08-11eqlock(): use separate lock to protect eql, fix missing unlockcinap_lenrek
2011-08-10added eqlock(), a interruptable version of qlock. addresses issue #81cinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen