Member variable Signal():cargo Foundation
User-defined data storage associated with the Signal object.
The cargo member variable provides a convenient way to associate arbitrary data with a Signal object. This can be any Xbase++ data type and is commonly used to pass information between the signaling thread and waiting threads.
The cargo variable is particularly useful in producer-consumer patterns where the producer can attach data to the signal that the consumer can then retrieve after being awakened. It can also be used to store status information, results, or any context data relevant to the synchronization point.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.