waitForMessage
void Enqueue(ConditionVariableEntry *queueEntry, bool waitForMessage)
if (waitForMessage) {
void WakeUpThread(bool waitForMessage)
if (waitForMessage) {
waitForMessage(port, "File 1 created:", B_ENTRY_CREATED, "_query_test_1");
waitForMessage(port, "File 2 created:", B_ENTRY_CREATED, "_query_test_2");
waitForMessage(port,"File 2 renamed (should fall out of query):", B_ENTRY_REMOVED, NULL);
waitForMessage(port,"File 2 renamed again (should time out):", B_TIMED_OUT, NULL);
waitForMessage(port,"File 2 renamed back (should be added to query):",
status_t status = waitForMessage(port,"File 2 renamed (should stay in query, time out):",
waitForMessage(port,"Received B_ENTRY_REMOVED, now expecting file 2 to be added again:",
waitForMessage(port,"File 2 removed:", B_ENTRY_REMOVED, NULL);
waitForMessage(port, "File 1 renamed (should fall out of query):", B_ENTRY_REMOVED, NULL);
waitForMessage(port, "File 1 removed (should time out):", B_TIMED_OUT, NULL);