db_result_t db_wait ( db_t  hdb,
db_wtime_t  timeout,
db_event_t event 
)

Wait for a notification message from the database.

Parameters:
hdb Database handle
timeout Maximum length of time to wait for a notification 0 - returns right away with DB_FAIL if no notification or DB_OK if there was a notification to report.
event Event structure containing information about the event. Check event.u.utid
Returns:
On failure, one of the following error codes is set:

See also:
db_watch_table, db_unwatch_table,
get_db_error, clear_db_error, Error Handling


Copyright © 2005-2008 ITTIA®. All rights reserved.