> According to documentation, libspotify is not thread safe. What does this mean?
It means that you can not invoke any libspotify API function while another API is invoked in a different thread. This includes all of the functions, even sp_session_process_events(). In other words, having a thread that just spins and invokes sp_session_process_events() when needed (either due to that the notification callback fires or a timeout happens), while another thread invokes API functions, is not supported.