summaryrefslogtreecommitdiffstats
path: root/src/cmd/fossil/9.h
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2013-09-23 23:16:25 +0200
committerDavid du Colombier <0intro@gmail.com>2013-09-23 23:16:25 +0200
commit4b5766580559d101dd1c29cc575b3ffa9f51c2d7 (patch)
treef35364a39e255b1336482ee30217d68279ba8699 /src/cmd/fossil/9.h
parent6f4d00ee45693290fae042b27536b54f77b96acd (diff)
downloadplan9port-4b5766580559d101dd1c29cc575b3ffa9f51c2d7.tar.gz
plan9port-4b5766580559d101dd1c29cc575b3ffa9f51c2d7.zip
fossil: move from liboventi to libthread and libventi
R=rsc https://codereview.appspot.com/13504049
Diffstat (limited to 'src/cmd/fossil/9.h')
-rw-r--r--src/cmd/fossil/9.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cmd/fossil/9.h b/src/cmd/fossil/9.h
index b7bdec26..d25d151f 100644
--- a/src/cmd/fossil/9.h
+++ b/src/cmd/fossil/9.h
@@ -57,31 +57,31 @@ struct Con {
int isconsole; /* immutable */
int flags; /* immutable */
char remote[128]; /* immutable */
- VtLock* lock;
+ QLock lock;
int state;
int fd;
Msg* version;
u32int msize; /* negotiated with Tversion */
- VtRendez* rendez;
+ Rendez rendez;
Con* anext; /* alloc */
Con* cnext; /* in use */
Con* cprev;
- VtLock* alock;
+ RWLock alock;
int aok; /* authentication done */
- VtLock* mlock;
+ QLock mlock;
Msg* mhead; /* all Msgs on this connection */
Msg* mtail;
- VtRendez* mrendez;
+ Rendez mrendez;
- VtLock* wlock;
+ QLock wlock;
Msg* whead; /* write queue */
Msg* wtail;
- VtRendez* wrendez;
+ Rendez wrendez;
- VtLock* fidlock; /* */
+ QLock fidlock; /* */
Fid* fidhash[NFidHash];
Fid* fhead;
Fid* ftail;
@@ -98,7 +98,7 @@ enum {
};
struct Fid {
- VtLock* lock;
+ RWLock lock;
Con* con;
u32int fidno;
int ref; /* inc/dec under Con.fidlock */
@@ -113,7 +113,7 @@ struct Fid {
DirBuf* db;
Excl* excl;
- VtLock* alock; /* Tauth/Tattach */
+ QLock alock; /* Tauth/Tattach */
AuthRpc* rpc;
char* cuname;