
code
文章平均质量分 85
慧心石
还在上学,没有毕业,
展开
-
mozilla code -nspr 线程同步
Thread synchronization has two aspects: locking and notification. Locking prevents access to some resource, such as a piece of shared data: that is, it enforces mutual exclusion. Notification involves原创 2012-05-29 09:09:47 · 772 阅读 · 0 评论 -
mozilla code nspr 多线程基础
多线程基础: 所有的头文件在nspr4.h中包括了 #include "prinit.h" //初始化nspr运行库,加载线程组件,在所有线程函数调用前使用 NSPR_API(void) PR_Init( PRThreadType type, //线程类型 PRThreadPriority priority, //线程运行级别 PRUintn maxP原创 2012-05-23 19:55:35 · 935 阅读 · 0 评论 -
mozilla code -nspr 文件I/O - 2
文件I/O #include 结构体: PRFileDesc 这个结构体太深奥了.再研究 struct PRFileDesc { const PRIOMethods *methods; /* the I/O methods table */ //好像是函数指指的列表,也就是访问的函数的列表 PRFilePrivate *secret;原创 2012-06-24 22:52:38 · 831 阅读 · 0 评论 -
mozilla code -nspr 文件I/O - 1
This chapter describes the most common NSPR types, enumerations, and structures used with the functions described inChapter 10 "I/O Functions" and Chapter 11 "Network Addresses." These include the原创 2012-06-24 16:32:23 · 863 阅读 · 0 评论