FunctionPackage: cgToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 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-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

ToCDocOverviewCGDocRelNotesFAQIndexPermutedIndex
Allegro CL version 10.1
Unrevised from 10.0 to 10.1.
10.0 version