[erlang-questions] A async c driver issues: The emulator will be halted during the execution of c driver code.

Vance Shipley vances@REDACTED
Wed Apr 2 22:26:27 CEST 2008


On Wed, Apr 02, 2008 at 10:25:34PM +0800, tate.zhou.cn wrote:
}  the erlang emulator will be halted until the  execution of 
}  c driver  completed.  

The rule is don't call synchronous functions in the emulator
thread (i.e. output() callback).  Use driver_async() to run
synchronous calls in a seperate thread and handle the result
in the ready_async() callback.

	-Vance



More information about the erlang-questions mailing list