lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
944 stars 385 forks source link

Fix GLib bitrot #379

Closed ihilt closed 1 year ago

ihilt commented 1 year ago

I tried to achieve some basic organization with each commit. The first hits the Thread API, then GTimeVal, and the third GStaticPrivate. The last commit is just updating the GLib version check to 2.32.0.

Mainly, this is just find and replace stuff. The only tricky part was taking an int64_t returned from g_get_real_time() and splitting it out into a struct timeval for the select function's timeout parameter. You can see that in lcm/lcm_udpm.c.

I ran the tests with make test in fc37, ubuntu 22.04, and ubuntu 20.04 containers and all tests passed. Also ran some log file playback and everything seemed unchanged.

Closes #65.