The IPC module offers an interface to the various forms of interprocess communication available under windows: mailslots, events, named pipes, mutexes, sempahores and waitable timers. At least, that’s the plan. At the time of writing, only mailslots and events are in there. But the rest are definitely on the way.
Return a Mailslot instance based on the name in mailslot. If the name is not a fully-qualified mailslot name (\.mailslot) then it is assumed to be on the local machine and is prefixed accordingly.
Parameters: |
|
---|
Return a Event instance, named or anonymous, unset by default and with automatic reset.
Parameters: |
|
---|---|
Returns: | a Event instance |
Return a Mutex instance, named or anonymous, not initially owned by default.
Parameters: |
|
---|---|
Returns: | a Mutex instance |
Return a pipe. If name is given a NamedPipe is returned, otherwise an AnonymousPipe. If name is not in the correct form for a pipe (\\<machine>\pipe\<name>) it is assumed to be a local pipe and renamed as such.
Wait for any of the Windows synchronisation objects in the list to fire. The objects must be winsys synchronisation objects (or, at least, have a pyobject method which returns a PyHANDLE object). The one which fires will be returned unless a timeout occurs in which case x_ipc_timeout will be raised.
Parameters: |
|
---|---|
Returns: | the object which fired |
Raises : | x_ipc_timeout if timeout_ms is exceeded |
Wait for all of the Windows synchronisation objects in the list to fire. The objects must be winsys synchronisation objects (or, at least, have a pyobject method which returns a PyHANDLE object).
Parameters: |
|
---|---|
Raises : | x_ipc_timeout if timeout_ms is exceeded |
Name | Val | Win32 |
---|---|---|
FAILED | -1 | INFINITE |
INFINITE | -1 | INFINITE |
OBJECT_0 | 0 | WAIT_OBJECT_0 |
ABANDONED | 128 | WAIT_ABANDONED_0 |
ABANDONED_0 | 128 | WAIT_ABANDONED_0 |
IO_COMPLETION | 192 | WAIT_IO_COMPLETION |
TIMEOUT | 258 | WAIT_TIMEOUT |
See also