Giter Site home page Giter Site logo

librf's People

Contributors

tearshark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

librf's Issues

多线程下run_one_batch对_cached_states的访问有可能会被修改.

LIBRF_API bool scheduler_t::run_one_batch()
{
	this->_timer->update();

	{

#if !RESUMEF_DISABLE_MULT_THREAD
scoped_lock __guard(_lock_running);
#endif
if (likely(_runing_states.empty()))
return false;

		std::swap(_cached_states, _runing_states);
	}

	for (state_sptr& sptr : _cached_states)
		sptr->resume();

	_cached_states.clear();
	return true;
}

关于 state_base_t 中的_coro 对象的疑问

作者你好,我在代码注释里面看到 _coro 对象可能来自协程里的promise产生的, 也可能来自 也可能来自awaitable_t,这两种情况分别对应什么场景,能否举个例子, future_await_suspend 对这两种场景是否需要区别处理

llvm clang11兼容性

使用clang11.0 编译出现如下的错误(clang10 无此编译错误) ,使用了gcc10.2 的libstdc++
In file included from /home/xxx/prog/librf/librf/librf.h:82:
In file included from /home/xxx/prog/librf/librf/src/mutex.h:5:
/home/xxx/prog/librf/librf/src/mutex_v2.inl:476:15: error: the expression 'co_await __promise.final_suspend()' is required to be non-throwing
future_t<> _Yield() const
^
/data/software/gcc-10.2.0/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../include/c++/10.2.0/coroutine:205:5: note: must be declared with 'noexcept'
}

貌似编译不了?

我在mac 系统下, 11.5.2, xcode 12.5.1

cmake -G Xcode 生成的工程无法编译

用 cmake build && make也编译不了

请问正确的编译方法是什么呢?

我想尝试在iOS上使用这个库

关于协程内存消耗数量的疑问

“创建100万个协程只需使用<820M>物理内存”
这个应该看使用的局部变量消耗的空间的大小?还是说除开了局部变量在堆上的”持久化保存“,其他的所有消耗在820M 左右?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.