search for: ipcstruct

Displaying 1 result from an estimated 1 matches for "ipcstruct".

Did you mean: instruct
2004 Oct 23
0
win32-ipc, with blocks (code review please)
...source for the win32-ipc package ****************************************************************************/ #include "ruby.h" #include <windows.h> #include "ipc.h" static VALUE cIpcError; static char error[MAX_STRING]; static VALUE ipc_init(VALUE self, VALUE obj){ IpcStruct* ptr; Data_Get_Struct(self,IpcStruct,ptr); ptr->handle = (HANDLE)NUM2UINT(obj); return self; } static VALUE ipc_allocate(VALUE klass){ IpcStruct* ptr = malloc(sizeof(IpcStruct)); return Data_Wrap_Struct(klass,0,ipc_free,ptr); } static VALUE wait_for_multiple(VALUE klass,VALUE ar...