PySoy: Upgrade RW Locks
completed by: Darrel
mentors: Amaury Medeiros, Arc Riley, Tony Young, David Czech, Mayank Singh
When you compile PySoy with GLib 2.32+ (which is now the minimum supported) you'll see a few of these while building Pathfollower.c:
warning: 'g_static_rec_mutex_lock' is deprecated (declared at /usr/include/glib-2.0/glib/deprecated/ gthread.h:173): Use 'g_rec_mutex_lock' instead [-Wdeprecated-declarations]
Do exactly what this says- everywhere in Pathfollower.c that we currently
use the old
g_static_rec_mutex_lock call, change it to use
g_rec_mutex_lock instead. Note that the new API is slightly
different so this isn't a simple search and replace. Your modified code should
compile without these warnings and without introducing any new warnings.
While working on this task you should join and remain in #PySoy on Freenode to get help, feedback, and guidance from mentors and other developers. Code updates which may affect your work are also announced here as they happen.
When you've done, commit your work and post the resulting changeset url to this task.