libPhenom C 语言并发编程框架开源项目

我要开发同款
匿名用户2013年09月17日
118阅读

技术信息

开源地址
https://github.com/facebookarchive/libphenom
授权协议
Apache

作品详情

libPheom是Facebook发布的一个高性能的C语言并发编程框架,支持事件驱动,支持多线程,还提供了内存管理和常用数据结构,甚至是jso处理。

示例代码:

#iclude "pheom/defs.h"#iclude "pheom/job.h"#iclude "pheom/log.h"#iclude "pheom/sysutil.h"it mai(it argc, char **argv){  // Must be called prior to callig ay other pheom fuctios  ph_library_iit();  // Optioal cofig file for tuig iterals  ph_cofig_load_cofig_file("/path/to/my/cofig.jso");  // Eable the o-blockig IO maager  ph_bio_iit(0);  // Do stuff here to register cliet/server stuff.  // This eables a very simple request/respose cosole  // that allows you to ru diagostic commads:  // `echo memory | c -UC /tmp/pheom-debug-cosole`  // The code behid this is i  // https://github.com/facebook/libpheom/blob/master/corelib/debug_cosole.c  ph_debug_cosole_start("/tmp/pheom-debug-cosole");  // Ru  ph_sched_ru();  retur 0;}

功能介绍

libPhenom 是 Facebook 发布的一个高性能的C语言并发编程框架,支持事件驱动,支持多线程,还提供了内存管理和常用数据结构,甚至是json处理。 示例代码:
#include ...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论