FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 8.2
Unrevised from 8.1 to 8.2.
8.1 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-2016, Franz Inc. Oakland, CA., USA. All rights reserved.
This page was not revised from the 8.1 page.
Created 2010.1.21.

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