blocking_step.h 415 B

1234567891011121314151617
  1. // This file declares the wait_for_unlock_notify function.
  2. // See the documentation on Stmt.Step.
  3. #include <sqlite3.h>
  4. #include <pthread.h>
  5. typedef struct unlock_note {
  6. int fired;
  7. pthread_cond_t cond;
  8. pthread_mutex_t mu;
  9. } unlock_note;
  10. unlock_note* unlock_note_alloc();
  11. void unlock_note_fire(unlock_note* un);
  12. void unlock_note_free(unlock_note* un);
  13. int wait_for_unlock_notify(sqlite3 *db, unlock_note* un);