From 27adbc35b9db3af0eb49e3a5430a4311b9919abf Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 16 Oct 2004 20:20:37 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=4336 --- api/graphics_api.C | 8 ++++++++ checkin_notes | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/api/graphics_api.C b/api/graphics_api.C index 8950224de4..49b2e7e076 100755 --- a/api/graphics_api.C +++ b/api/graphics_api.C @@ -156,6 +156,14 @@ int boinc_init_graphics(void (*_worker_main)()) { return 0; } +#ifdef _PTHREAD_H +extern "C" { +void glut_quit() { + pthread_exit(0); +} +} +#endif + int boinc_finish_graphics() { #ifdef _WIN32 if (graphics_inited) { diff --git a/checkin_notes b/checkin_notes index 64e39e2bfa..e7242a092a 100755 --- a/checkin_notes +++ b/checkin_notes @@ -18482,3 +18482,14 @@ David 16 Oct 2004 create_account_form.php team_join_action.php team_join_form.php + +David 17 Oct 2004 + - Deal with fatal GLUT errors (e.g. can't connect to X server) + by calling glut_quit() (which exits the pthread) + rather than exit() or abort() (which exits the app) + + api/ + graphics_api.C + boincglut/lib/glut/ + glut_util.C + README (new)