Isaac Connor
8aeb4ab758
Switch db_mutex to a std::mutex. Use modern locking with it. Use zmDbDo or dbQueue.push where appropriate. code cleanup.
2021-02-25 12:26:26 -05:00
Peter Keresztes Schmidt
0dbc39ee25
Cleanup and reorganize includes
...
With this commit a unified structure for includes is introduced.
The general rules:
* Only include what you need
* Include wherever possible in the cpp and forward-declare in the header
The includes are sorted in a local to global fashion. This means for the include order:
0. If cpp file: The corresponding h file and an empty line
1. Includes from the project sorted alphabetically
2. System/library includes sorted alphabetically
3. Conditional includes
2021-02-04 18:02:01 +01:00
Peter Keresztes Schmidt
0c5c720e4b
Remove includes of <stdint.h>
...
Instead of including the deprecated header <stdint.h>, zm_define.h should be used.
2021-02-02 21:37:26 +01:00
Isaac Connor
1257a7ea37
improvements reported by cppcheck
2020-11-01 16:11:19 -05:00
Isaac Connor
1a94479751
Cleanup/rework. Handle database connection failure. This can happen if we init logging before config reading. Default terminal log level to warning. Cleanup logInit copying the options in order to populate mLogPath from config. We can handle this in the constructor now.
2019-09-17 11:10:59 -04:00
Isaac Connor
4d4666f5e0
add a mutex in logging functions so that multiple threads can log at the same time
2018-11-23 12:45:41 -05:00
Isaac Connor
989ed65f52
spacing and braces, remove a dead unused function
2018-04-11 10:50:28 -04:00
Isaac Connor
0053404553
remove some spaces
2018-03-29 12:24:12 -04:00
Isaac Connor
77426a7838
term to terminal for clarity
2018-02-17 12:25:05 -05:00
Isaac Connor
e83586dbe1
Rename Term to Terminal to differentiate between Terminate
2018-02-13 06:23:18 -05:00
Isaac Connor
47f3971f9a
remove unused mDbConnection
2017-12-12 13:18:50 -05:00
Isaac Connor
fece06c9e3
google code style
2017-10-19 17:12:36 -04:00
Isaac Connor
f81471da09
google code style
2017-10-18 10:22:37 -07:00
Isaac Connor
536ccc0cec
maybe fix memleak, maybe fix crash
2017-08-10 15:44:20 -04:00
Andy Bauer
254fcbcef7
update gpl 2 mailing address in source files
2016-12-26 09:23:16 -06:00
Isaac Connor
03b1ced568
tabs to spaces and use 2space indenting
2016-04-04 10:11:48 -04:00
Andrew Bauer
14feffc455
strip the path from the filename
2015-08-21 18:28:50 -05:00
manupap1
b4732e4750
Close logger and database on exit
2014-11-14 22:17:44 +01:00
mastertheknife
dddec742e0
Fixed zm_logger not including zm_config.h first.
2013-09-25 09:00:52 +03:00
mastertheknife
e8d20faec8
Proper checking for sys/syscall.h
2013-09-25 07:11:59 +03:00
Kfir Itzhak
0ef29743f2
Merged the deinterlacing code, although only four field is optimized so far, and is still not working perfectly.
...
1) Fixed compile errors that may occur when compiling with gcc 4.7 or newer.
2) Modified the check for libavcodec to work correctly with the latest versions of ffmpeg.
2012-07-17 12:23:13 +03:00
stan
2c87c43978
Use dedicated DB connection for logging, with auto reconnect set up.
...
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3474 e3e1d417-86f3-4887-817a-d78f3d33393f
2011-06-28 11:07:35 +00:00
stan
6ff385e407
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3459 e3e1d417-86f3-4887-817a-d78f3d33393f
2011-06-21 09:19:10 +00:00