新機能
- ベンチマークフレームワーク。
#include "co/benchmark.h"
#include "co/mem.h"
BM_group(malloc) {
void* p;
BM_add(::malloc)(
p = ::malloc(32);
);
BM_use(p);
BM_add(co::alloc)(
p = co::alloc(32);
);
BM_use(p);
}
int main(int argc, char** argv) {
flag::parse(argc, argv);
bm::run_benchmarks();
return 0;
}
機能強化
- コルーチンのスケジューリングの最適化。
- コルーチン関連のコンポーネントの拡張機能、、
co::mutex
などは、コルーチンまたは非コルーチンで使用でき、などの非 POD タイプはコルーチン に保存できます。co::event
co::chan
co::chan
std::string
他の
Random
クラス、プロバイダーco::rand()
、co::randstr()
メソッド、ヘッダー ファイルを削除し、名前を に変更しましたco/rand.h
。- グローバル クラスを削除し
Thread
ますMutex
。 co::*scheduler*
API の名前が変更されるまで待ちますco::*sched*
。- その他の改善、バグ修正など。