⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cubbyholeimpl.c

📁 北大Java 语言程序设计 ppt课件及源码
💻 C
字号:
#include <StubPreamble.h>#include <javaString.h>#include "CubbyHole.h"long CubbyHole_get(struct HCubbyHole *this) {    while (unhand(this)->available == 0) {	monitorWait(obj_monitor(this));    }    unhand(this)->available = 0;    monitorNotify(obj_monitor(this));    return unhand(this)->seq;}void CubbyHole_put(struct HCubbyHole *this, long value) {    while (unhand(this)->available > 0) {        monitorWait(obj_monitor(this));    }    unhand(this)->seq = value;    unhand(this)->available = 1;    monitorNotify(obj_monitor(this));}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -