GLFW on another thread

I’d suggest not doing any new’s or move semantics, just put your code in function or use lambda:

thread render_thread([]() {
   ... thread code, or call function that should run in thread
});
... rest of main code