remove cqueue, use class SafeQueue (#19774)

* class SafeQueue

* cleanup includes

* space

* add timeout

use try_poll

* add function empty() & size()

* class SafeQueue

* add timeout

use try_poll

* add function empty() & size()

* rebase master

* rebase master

* for loop

* fix bug
old-commit-hash: e6783f4d9f10a256a4c301eb1d1843d9e2a17ab6
This commit is contained in:
Dean Lee
2021-01-28 22:12:45 +08:00
committed by GitHub
parent 7a086b3f3d
commit da9b0e8baa
10 changed files with 105 additions and 153 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ if SHARED:
else:
fxn = env.Library
common_libs = ['params.cc', 'swaglog.cc', 'cqueue.c', 'util.cc', 'gpio.cc', 'i2c.cc']
common_libs = ['params.cc', 'swaglog.cc', 'util.cc', 'gpio.cc', 'i2c.cc']
_common = fxn('common', common_libs, LIBS="json11")