Commit 73789829 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 311f9ff6
...@@ -83,10 +83,15 @@ struct _Background : IContext { ...@@ -83,10 +83,15 @@ struct _Background : IContext {
static _Background _bg; static _Background _bg;
// XXX doc
IContext* background() { IContext* background() {
return &_bg; // NOTE nil is not valid in C++ (IContext* also carries vtab ptr) return &_bg; // NOTE nil is not valid in C++ (IContext* also carries vtab ptr)
} }
// XXX doc
const error canceled = fmt::errorf("context canceled");
// XXX deadline exceeded?
} // context:: } // context::
#if 0 #if 0
...@@ -678,7 +683,6 @@ error WatchLink::_send(StreamID stream, const string &msg) { ...@@ -678,7 +683,6 @@ error WatchLink::_send(StreamID stream, const string &msg) {
return wlink->_write(pkt); return wlink->_write(pkt);
} }
//error WatchLink::_write(const Pkt *pkt) {
error WatchLink::_write(const string &pkt) { error WatchLink::_write(const string &pkt) {
WatchLink *wlink = this; WatchLink *wlink = this;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment