FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version

cg-process-wait

Arguments: whostate function &rest args

This function is needed only on platforms where Allegro's threads are not native operating system threads. On these platforms, the value of *use-single-cg-event-handling-process* will be true. It is also the case on these platforms that events cannot be handled while the *single-cg-event-handling-process* is in a call to process-wait. Therefore, if the *single-cg-event-handling-process* does call process-wait, all event-handling would be permanently hung.

To avoid this problem, you can call cg-process-wait instead of process-wait in any code that might be run on a non-native threads platform in Common Graphics's event-handling process. If the platform uses native threads or the call is not in Common Graphics's event-handling process, then process-wait is called directly. Otherwise the non-native threads event-handling process will emulate process-wait by calling the specified function in an event-handling loop until the function returns true.


Copyright (c) 1998-2012, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 9.0. This page was not revised from the 8.2 page.
Created 2012.5.30.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 9.0
Unrevised from 8.2 to 9.0.
8.2 version