projects
/
invirt/third/libt4.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Cleanups
[invirt/third/libt4.git]
/
lock_demo.cc
1
#include "lock_client.h"
2
#include "tprintf.h"
3
4
char tprintf_thread_prefix = 'd';
5
6
int
7
main(int argc, char *argv[])
8
{
9
if(argc != 2) {
10
fprintf(stderr, "Usage: %s [host:]port\n", argv[0]);
11
return 1;
12
}
13
14
lock_client *lc = new lock_client(argv[1]);
15
LOG_NONMEMBER("stat returned " << lc->stat("1"));
16
}