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

📄 unix-glue.sml

📁 这是我们参加06年全国开源软件的竞赛作品
💻 SML
字号:
(* unix-glue.sml * * COPYRIGHT (c) 1995 AT&T Bell Laboratories. * COPYRIGHT (c) 1989-1991 John H. Reppy * * The Glue for the UNIX version of CML. *)structure UnixGlue : OS_GLUE =  struct    fun init () = TimeOut.reset()    fun pollOS () = (	  TimeOut.pollTime();	  IOManager.pollIO();	  ProcManager.pollProcs())    fun pause () = (case TimeOut.anyWaiting()	   of NONE => if (IOManager.anyWaiting() orelse ProcManager.anyWaiting())		then (Signals.pause(); true)		else false(** NOTE: eventually, we should just go to sleep for the specified time **)	    | (SOME t) => (Signals.pause(); true)	  (* end case *))    fun shutdown () = TimeOut.reset()  end;

⌨️ 快捷键说明

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