Richard Fuchs
cdc8407a7c
MT#55283 use relaxed memory order for stats
No need for memory barriers here
Change-Id: I9ac6768bb1929be3aa982b0de73c95baa965bef7
2 years ago
Richard Fuchs
ebaca8a4e0
MT#55283 initial support for io_uring
Change-Id: I497db70a4ba6a9242b637a867a70fdfa0f361a44
2 years ago
Richard Fuchs
71177278dd
MT#55283 move atomic64 to auxlib.h
Change-Id: I6597d4ee39ba0ebb86f0640caaf538e505b78b77
2 years ago
Richard Fuchs
28e9079e2f
MT#55283 mass codec-chain update
Change-Id: I181e3cce6145b8bfd4c55e931b303a3b037eb167
2 years ago
Richard Fuchs
8d3b43a445
MT#55283 update NONE flags to gboolean
Also move `version` out of the global namespace.
Change-Id: I72e222fa6c533fc21d8391a861bdb804285895d6
2 years ago
Richard Fuchs
2160cb0fbf
MT#55283 use helper struct instead of void* array
Change-Id: Ic9992d3206d39a9f0274c8d88a3a027b26ba751f
2 years ago
Richard Fuchs
96a894ff8b
MT#55283 move helper funcs away from g_ namespace
Change-Id: I36f35062b135418dadb02d46d50b1454b5eebe3a
2 years ago
Richard Fuchs
949c5a9d8e
MT#55283 work around gcc <12 being stupid
gcc <12 propagates the const-ness of the given value to the newly
declared variable with __auto_type, leading to silly "can't assign to
const variable" errors. Work around this with an ugly macro.
Change-Id: Ic952c094c24bd802379fc10ad19d559613b2c1d0
2 years ago
Richard Fuchs
a40557eb03
MT#55283 remove obsolete macro
Change-Id: I3f05d02fe9475e0689a70725dc659b599a1ac904
2 years ago
Richard Fuchs
0dc3768225
MT#55283 use g_auto for auto locks
Change-Id: I103e0d9a2e24286b242ccd3ac4d2d6b734cdfe35
2 years ago
Richard Fuchs
cfa560c6b4
MT#55283 use g_auto for GHashTable
Change-Id: I698f661711104a0fd6a983c58c0256532e86f87e
2 years ago
Richard Fuchs
c28ba5cd4e
MT#55283 use g_auto for GString
Change-Id: Ie7eb4a8f4115cdf13770cb112d8116b29ae94d73
2 years ago
Richard Fuchs
43b171c714
MT#55283 replace free_gvbuf via g_autoptr
Change-Id: If2ce7fb274478a0c044c00ded1404c31258ed0c7
2 years ago
Richard Fuchs
5a2819bd9d
MT#55283 use g_auto for string buffers
Change-Id: I135f75355a128feb8f3152c170ca4f9022d917a8
2 years ago
Richard Fuchs
32dd03cbd6
MT#54294 update to codec-chain framework
Change-Id: Ic6286494fad459df4a77665aae66f1af03e9664b
2 years ago
Richard Fuchs
b82b31ec2b
MT#54294 convert cudecs usage to plugin
*) Remove packaging for -gpu packages
*) Remove build profile restrictions, except for the build dependency
itself
*) Remove script to generate dh fragments for -gpu packages
*) Convert --cudecs switch to a path argument pointing to the .so
*) Don't link against libcudecs during build
*) Only include the single types.h header needed for usage as a plugin
*) Resolve all symbols during startup after loading the .so
Change-Id: Ide99eec2156d5d3be8c40594391cb1603add4b16
2 years ago
Richard Fuchs
2fa121c0d9
MT#54294 add GPU support
Change-Id: I035eff68a4448ad1b2f5b4520943626e1723fce7
2 years ago
Richard Fuchs
0f9bb26143
MT#55283 unify __attribute__() test macros
Change-Id: Ia2ef8e995c78a2dd1fe33e37f78eed6e58191ac7
2 years ago
Richard Fuchs
d6928c74f8
MT#56374 add gettid() wrapper
... for older glibc which doesn't support it
Change-Id: I82cd49e6a10fd48861ae00c4eda06613f930fca7
2 years ago
Richard Fuchs
125657e108
MT#56374 move glib helper to auxlib
Needed by perf-tester
Change-Id: I9fcb68e48938a2060498bf30ff7ffbdd38c6d94b
2 years ago
Richard Fuchs
0be5b73887
MT#56374 add `poller-size` config var
Change-Id: Ibd6a42f5cc5b261ce95fe0231ec78e55bd66ac31
2 years ago
Richard Fuchs
196249ee00
MT#56374 refactor asan pthread cleanup hack
... in terms of macros that can be reused.
Change-Id: I394dece8ec22ce4eff4deefe5ddd6315bb35a6fb
2 years ago
Richard Fuchs
118a7ed472
MT#56374 move thread_create to lib
It actually uses a shared config setting from the lib (stack size) so
the function itself also belongs in the lib.
Change an argument type to bool.
Change-Id: I8be68008fcfc058cb29069102eb00497b66897a5
2 years ago
Richard Fuchs
4aa1d5f6cd
MT#55283 move prototype
... to appropriate section in .h
Change-Id: Ia66f7df2b8d0393a21505676b9c30adb9b948f2b
2 years ago
Richard Fuchs
ee0fa947ce
MT#56374 move resources() to lib
Useful helper function for other components
Change-Id: Idb8ab38e3ac27461b71e28029e7abc0bfc0529c2
2 years ago
Richard Fuchs
16c08efe62
MT#56374 move pthread helper functions to auxlib
The poller (also in lib) depends on this.
Change-Id: Iabf7c2ddef129401c19ae6a1f4f391ab9eaa4367
2 years ago
Richard Fuchs
61ca57f0cf
MT#56374 move ssl_random to auxlib
The poller (now also in lib) depends on this.
Change-Id: I8185e514c7a7aeef80c905136795904340ff60dc
2 years ago
Richard Fuchs
84f4467241
MT#56374 move rtpe_shutdown to auxlib
This is a dependency of the poller and so is needed in lib/ as well to
make it usable.
Also consolidate the type.
Change-Id: I70ec8a200d6cd65710ac93636a9495cf24c35ef4
2 years ago
Richard Fuchs
ddc79e5713
MT#55283 add missing header
Change-Id: I40a9758e8af0003b64478c6d2bff85e6ab8eae2c
3 years ago
Richard Fuchs
bc742bb1ad
MT#56447 add wrapper g_hash_table_steal_extended
Compatibility for glib versions older than 2.58
Change-Id: Ie212a1c08efa87f103b31eac31f81a3870e5cedd
3 years ago
Richard Fuchs
ed30c55312
MT#56447 fix LOCK __COUNTER__ expansion
We need two levels of CPP macros so that __COUNTER__ is expanded before
being concatenated.
Change-Id: I04d871a3bb841080eb8992bb8261551b5bd22832
3 years ago
Richard Fuchs
cd185fd168
MT#56493 move GTree helpers to auxlib
Change-Id: Ia3135d9f2c370d9c18d7249506256241339df9d1
3 years ago
Richard Fuchs
dc1a44f3ec
MT#55447 add support for EVS
Change-Id: I54993cefbb3d30a4dc87b13507dd0d61739baaa0
3 years ago
Dup4
ad5d98e4d0
MT#55283 Squashed commit of the following:
closes #1560
closes #1559
commit e11f52c041
Author: Dup4 <lyuzhi.pan@gmail.com>
Date: Tue Nov 1 22:58:44 2022 +0800
fix: add comma
commit e0c2f47b49
Author: Dup4 <lyuzhi.pan@gmail.com>
Date: Tue Nov 1 22:01:26 2022 +0800
feat: add log-name option
Change-Id: I40a7b68120efb240faea86eb2d716d5e01a420c3
3 years ago
Richard Fuchs
941a50edd5
TT#156900 add helper functions and macros
Change-Id: I341632e4b6dbefd6743b9b1c4578c374c84505b2
4 years ago
Richard Fuchs
56d4ff74f2
TT#14008 add config knob for max log line length
This is useful because we log to stderr, which technically would allow
unlimited log line length, but this is in fact turned over to syslog,
which truncates log lines that are too long.
Change-Id: Iee8994842335ab1cf94941c14eced01e29120bc9
4 years ago
Richard Fuchs
f04332915b
TT#91151 add publish/subscribe commands
Change-Id: I1842b89efea7fa3af0bd4d045e49da31285cd0e1
5 years ago
Richard Fuchs
34e61f9adf
TT#119504 introduce auto-unlock type
Change-Id: Iea78b823a7729d8bac079a2e2bc2c71ab9f90780
4 years ago
Richard Fuchs
25cb6ff857
TT#14008 handle deprecated g_memdup
GLib 2.68 deprecates g_memdup() in favour of g_memdup2() as the former
was using a guint second argument which could lead to integer overflows
(gsize should be used instead).
Change-Id: Iaa3e3b1ecaab00d1ac887c915397b15b7204dd11
5 years ago
Richard Fuchs
addaa6acbc
TT#111150 add missing include
auxlib.h uses uintXX_t types, which needs stdint.h
Change-Id: Ifad291074c501f2f0268f2eb48399b8bec70d272
5 years ago
Guillem Jover
07695d2abb
TT#111150 Use modern <stdint.h> uint<bits>_t types
The u_int<bits>_t are BSD legacy types, while the new ones are specified
by C99 and SUSv3.
Change-Id: Ia748cabc33a7e5adc2c7a6049ad1e55be0c788a8
5 years ago
Richard Fuchs
b0f185f409
TT#111357 refactor sysconf() call into shared code
Change-Id: Ifd8d1d774f55e7c58bf82c9a5f67787e02f53c3f
5 years ago
Richard Fuchs
1dbfbe87d3
TT#14008 move g_string_free helper to auxlib
Change-Id: I34e0aa0be1df06346e86684c6488caf8e302df9f
5 years ago
Richard Fuchs
30733ec5cd
TT#97301 support granular log levels
Change-Id: Ife458bd2449f61113a3e6db1708821570d92dc23
5 years ago
Richard Fuchs
f393d29009
TT#101202 keep timer queue entries with same timestamp in order
closes #1110
Change-Id: Ia121deb9589bfdfa112189b22d4a78bdb29c535b
5 years ago
Richard Fuchs
b260e145e7
TT#97500 set thread stack size
closes #1078
Change-Id: Iebe5effb917731c8ca553c9e599df613e763b255
5 years ago
Richard Fuchs
eae7f3a327
TT#84360 add new option to split multi-line log messages
Change-Id: Ie29301dbf5f704c4f3c87431e3c63fac761696d5
6 years ago
Richard Fuchs
48b33bd3dc
TT#28300 move auto cleanup functions to lib files
Change-Id: Id1fff1523b2bfecf2a929c235fe1719bc18b97f6
6 years ago
Richard Fuchs
a1fb92353a
TT#28300 eliminate free_buf in favour of free_gbuf
Change-Id: I128265ff2783c94b897de8ea58b99811fbbe3607
6 years ago
Stefan Mititelu
de28a65934
Solve Vlagrind "definitely lost" memory leaks
6 years ago