239 Star 943 Fork 325

GVPtboox / tbox

2017-01-24 19:26
85844 waruqi 1578916878 ruki

New features

  • Support coroutine context switch for mips
  • Add __tb_thread_local__ keyword macro
  • Add --micro=y|n option to compiling micro library (~64K) for the embed system
  • Add tb_addrinfo_addr and tb_addrinfo_name interfaces
  • Add stackless coroutine
  • Add semaphone and lock for the stackless coroutine

Changes

  • Optimize io scheduler for coroutine, cache events for poller
  • Add c11 _Static_assert
  • Remove some deprecated interfaces for hash and platform

新特性

  • 针对协程上下文切换,支持mips架构
  • 添加__tb_thread_local__关键字宏
  • 添加 --micro=y|n 选项,实现极小编译,针对嵌入式平台,编译tbox微内核(~64K)
  • 添加 tb_addrinfo_addr and tb_addrinfo_name 接口
  • 添加stackless协程,更加轻量的协程支持,每个协程只占用几十个bytes,同时支持io调度
  • 针对stackless协程,增加lock和semaphone支持

改进

  • 为协程优化io调度器,缓存poller轮询等待,减少频繁重复调用epoll_ctl, kevent等系统接口
  • 添加对c11关键字_Static_assert的支持
  • 针对hash和platform模块,移除一些废弃的接口
C
1
https://gitee.com/tboox/tbox.git
git@gitee.com:tboox/tbox.git
tboox
tbox
tbox

搜索帮助