nopenpilot/selfdrive/common
Willem Melching 74aa6e29c9
Params: new class FileLock (#20636)
* new class LockFile

* lock->try_lock

* rebase master

* close if fd_ >=0

* rename try_lock to lock

* keep tryring if flock() return EINTR

* throw exception on error

* keep trying if open() gets interrupted by a signal

* close fd_ before throw flock exception

* add macro HANDLE_EINTR

* HANDLE_EINTR for open & write

* add errno in exception

* add destructor

* don't throw exception,log err and return

* Revert "don't throw exception,log err and return"

This reverts commit 6e1ba4a1bd82de3d4d07db5238a82184fd2ec9b4.

* add lock file name in exception

* cleanup  exception text

* use lock_guard in function put

* anonymous namespace

* use do-while(0) instead of goto

* cleanup read_db_all

* cleanup FileLock

* remove fchmod 0666 for apks

* Revert "remove fchmod 0666 for apks"

This reverts commit b389c31762417c4465d73be2453efcf7bc693aee.

* log instead of runtime error

* keep libs

Co-authored-by: deanlee <deanlee3@gmail.com>
2021-04-09 16:35:44 +02:00
..
SConscript tici: fix GL linking (#20626) 2021-04-08 11:59:33 -07:00
clutil.cc merge utilpp.h into util.h (#19710) 2021-01-10 14:57:32 -08:00
clutil.h clutil.h: remove extern C (#19809) 2021-01-18 15:04:37 +01:00
framebuffer.cc FrameBuffer: move the status,success variables closer to usage (#20308) 2021-03-11 15:02:35 +01:00
framebuffer.h Qt UI: power saving (#20456) 2021-03-24 11:09:39 -07:00
glutil.cc convert glutil.c to gltuil.cc & add class GLShader (#19720) 2021-01-12 15:43:34 +01:00
glutil.h convert glutil.c to gltuil.cc & add class GLShader (#19720) 2021-01-12 15:43:34 +01:00
gpio.cc add function write_file() (#2181) 2020-09-21 16:10:38 +02:00
gpio.h gpio.h: remove extern "C" (#19799) 2021-01-17 15:51:05 -08:00
i2c.cc Tici Focal (#2459) 2020-11-12 17:09:36 -08:00
i2c.h Tici sensord (#2072) 2020-08-26 11:30:30 +02:00
mat.h Torch model (#2452) 2020-11-11 20:31:46 -08:00
modeldata.h ecam toggle (#20597) 2021-04-07 19:12:35 +02:00
params.cc Params: new class FileLock (#20636) 2021-04-09 16:35:44 +02:00
params.h add putBool/getBool wrappers to cython params class (#20611) 2021-04-07 15:36:37 +02:00
queue.h remove cqueue, use class SafeQueue (#19774) 2021-01-28 15:12:45 +01:00
swaglog.cc prevent corrupted log messages (#20530) 2021-03-30 11:29:26 -07:00
swaglog.h swaglog: use std::mutex & remove extern C (#19817) 2021-01-18 13:35:11 +01:00
timing.h remove double semicolons (#19682) 2021-01-06 20:57:46 -08:00
touch.c touch.c:deleting useless function (#2208) 2020-09-21 11:43:54 +02:00
touch.h touch.c:deleting useless function (#2208) 2020-09-21 11:43:54 +02:00
util.cc Add watchdog check to manager (#20277) 2021-03-08 19:17:46 -08:00
util.h Added new util class FirstOrderFilter (#20303) 2021-03-30 12:09:06 +02:00
version.h bump version to 0.8.4 2021-03-30 13:16:45 -07:00
visionimg.cc Refactor image texture stuff into class (#19719) 2021-01-11 15:52:58 +01:00
visionimg.h Refactor image texture stuff into class (#19719) 2021-01-11 15:52:58 +01:00
watchdog.cc Add watchdog check to manager (#20277) 2021-03-08 19:17:46 -08:00
watchdog.h Add watchdog check to manager (#20277) 2021-03-08 19:17:46 -08:00