wangqiangnpq
wangqiangnpq
~LockedChannelImpl() { DebugPrint(dbg_mask_ & dbg_channel, "[id=%ld] Channel destory.", this->getId()); assert(lock_.try_lock()); } 是不是这段try_lock()会崩溃 ? 你是怎么解决的
如果我想要把异步的东西当作同步在调用,我得申请chan并且管理它么,因为我没看到 yield对应的resume接口在哪。
我用cmake加入这个工程 set(LibgoInc ${PROJECT_SOURCE_DIR}/third_party/libgo/libgo) include_directories(${LibgoInc})用这个包含libgo的头文件之后编译会报下面的错 target_link_libraries(${PROJECT_NAME} libgo_dynamic) e:\poject\server\third_party\libgo\libgo\sync\channel_impl.h(18): error C2059: 语法错误:“常数” e:\poject\server\third_party\libgo\libgo\sync\channel_impl.h(20): note: 参见对正在编译的 类 模板 实例化 "co::ChannelImpl" 的引用 e:\poject\server\third_party\libgo\libgo\sync\channel_impl.h(18): error C2238: 意外的标记位于“;”之前 e:\poject\server\third_party\libgo\libgo\sync\cas_channel_impl.h(283): error C2059: 语法错误:“常数” e:\poject\server\third_party\libgo\libgo\sync\cas_channel_impl.h(298): note: 参见对正在编译的 类...