How do I notify a process of an SQLite database change done in a different process?

前端 未结 7 2543
南笙
南笙 2021-02-19 16:27

Let\'s say I have two or more processes dealing with an SQLite database - a \"player\" process and many \"editor\" processes.

The \"player\" process reads the database

7条回答
  •  南方客
    南方客 (楼主)
    2021-02-19 17:09

    If it's on the same machine, the simplest way would be to have named pipe, "player" with blocking read() and "editors" putting a token in pipe whenever they modify DB.

提交回复
热议问题