process(deprecated)/block - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : process(deprecated)/block

process

  

block

  

waits for one of the specified descriptors to become ready

 

Calling Sequence

Parameters

Description

Calling Sequence

block(timeout, pipe ...)

Parameters

timeout

-

maximum amount of time to wait, 0 for forever

pipe

-

file descriptors of one or more open pipe ends

Description

• 

Important: The process package has been deprecated. Use the superseding package Threads instead.

• 

The block function will wait the specified amount of time, or forever if 0 is specified, for one of the specified pipe ends to have data for reading, or space for writing.

• 

The block function returns a list of those descriptors that have become ready. This list will usually contain only one descriptor.

• 

If no pipe end has become ready by the time the timeout period has elapsed, block returns FAIL.

• 

The command with(process,block) allows the use of the abbreviated form of this command.

See Also

file_types

IO_errors

process(deprecated)[fork]

process(deprecated)[pipe]

Threads