Download Latest Version tbox v1.6.3.zip (1.6 MB)
Email in envelope

Get an email when there's a new version of tbox

Home / v1.6.1
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2016-12-07 1.2 kB
tbox v1.6.1.tar.gz 2016-12-07 8.2 MB
tbox v1.6.1.zip 2016-12-07 9.1 MB
Totals: 3 Items   17.3 MB 0

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模块,移除一些废弃的接口
Source: README.md, updated 2016-12-07