Commit Graph

588 Commits

Author SHA1 Message Date
David Anderson aaa135c3d3 *** empty log message ***
svn path=/trunk/boinc/; revision=5478
2005-02-19 00:12:59 +00:00
David Anderson 1e2c3e1266 *** empty log message ***
svn path=/trunk/boinc/; revision=5452
2005-02-16 23:30:29 +00:00
David Anderson 8d0ab453b3 *** empty log message ***
svn path=/trunk/boinc/; revision=5443
2005-02-16 23:17:43 +00:00
David Anderson 0b495765c4 *** empty log message ***
svn path=/trunk/boinc/; revision=5427
2005-02-15 06:32:43 +00:00
David Anderson 6c6b2b7ba2 *** empty log message ***
svn path=/trunk/boinc/; revision=5408
2005-02-11 23:47:49 +00:00
Bruce Allen 87d0753b1a Add CVS-id RCS tags to files.
svn path=/trunk/boinc/; revision=5398
2005-02-11 04:46:01 +00:00
Eric J. Korpela 7450ffd910 There was a problem using dynamic allocations (with new) in many of the
graphics classes.  In many places the code was written assuming default values
of 0, especially for pointers and booleans.  While that's true in the case of
a static instance with the default constructors, it not generally true with
dynamic allocation unless the default constructor is replaced.  Therefore I've
added constructors in the following classes/structs:  MOVING_TEXT_PANEL, COLOR,
PROGRESS, PROGRESS_2D, TEXTURE_DESC, REDUCED_ARRAY.

This will be a problem is any are used from C code unless the constructors
declarations are enclosed in "#ifdef __cplusplus" blocks.

There was also a problem that showed up under Windows when dynamic allocations
were used.  app_graphics_resize() gets called before app_graphics_init().  This
usually results in a crash since classes haven't yet been constructed.  To work
around this I've added a case for WM_CREATE in the WndProc() which calls
app_graphics_init.  Under windows this will get passed before WM_SIZE does.

svn path=/trunk/boinc/; revision=5395
2005-02-11 02:15:20 +00:00
Eric J. Korpela 0e47fe1fa6 -Unfortunately on some 32 bit systems there is a problem with wx-widgets
configuring itself for largefile support.  On these systems largefile
     support breaks C++ compiles by defining away many of the C standard library
     routines that should reside in namespace std::.  In order to get around
     problem first we have to check the largefile support macros.  Later we will
     use the macro SAH_LARGEFILE_BREAKS_CXX to check for the breakage.  If
     if breakage is found LARGEFILE_BREAKS_CXX is defined in config.h.  This
     define is checked in std_fixes.h and the appropriate functions are defined
     in order to solve the problem. (These functions were already in place)
     Because these defines affect the behavior of standard library headers,
     std_fixes.h is being included from config.h
    -Added AM_CPPFLAGS, AM_CFLAGS, and AM_CXXFLAGS (for flags common to all
     compiles) so they will be defined in all Makefile.am files.
    -Put #ifdef _cplusplus around the C++ specific items in std_fixes.h so it
     may be included from C source files.

svn path=/trunk/boinc/; revision=5375
2005-02-09 19:39:04 +00:00
David Anderson 6e1c442831 *** empty log message ***
svn path=/trunk/boinc/; revision=5374
2005-02-09 19:02:11 +00:00
Eric J. Korpela 4f5cff90d5 Changed xwin_glut_is_initialized() to return int.
svn path=/trunk/boinc/; revision=5321
2005-02-04 21:26:27 +00:00
Eric J. Korpela 0616ecb86f Added a boolean function "xwin_glut_is_initialized()" to allow applications
to determine whether glut has been initialized before calling any glut API
functions.

svn path=/trunk/boinc/; revision=5317
2005-02-04 21:04:05 +00:00
David Anderson 7c0456340a *** empty log message ***
svn path=/trunk/boinc/; revision=5232
2005-01-28 01:58:11 +00:00
Rom Walton 4294c73664 *** empty log message ***
svn path=/trunk/boinc/; revision=5220
2005-01-27 09:24:18 +00:00
Rom Walton b91c5683a3 *** empty log message ***
svn path=/trunk/boinc/; revision=5219
2005-01-27 09:19:42 +00:00
Rom Walton 943dfda580 *** empty log message ***
svn path=/trunk/boinc/; revision=5218
2005-01-27 08:36:27 +00:00
David Anderson 435f8edd47 *** empty log message ***
svn path=/trunk/boinc/; revision=5161
2005-01-20 23:22:22 +00:00
Bruce Allen 37a49c9b09 Patches from Reinhard Prix to fix several problems.
(1) apps being suspended would call boinc_finish(nonzero) and
          core client would treat this as app failure.  Introduce
          a new function boinc_exit() and call that instead.
(2) improvements to GUI build with wxWidgets
(3) improved X event handling loop now ensures that X window
          is taken away when window killed.

svn path=/trunk/boinc/; revision=5142
2005-01-19 15:54:04 +00:00
David Anderson 74acc672b2 replace bad filename hashing function
svn path=/trunk/boinc/; revision=5031
2005-01-08 07:55:59 +00:00
Bruce Allen 7d96f35ba3 Reinhard has done a substantial amount of work in the past
couple of weeks to fix a number of bugs and problems in the
X-windows and/or Mac graphics event loop, and with lockfile
handling problems seen on a number of Unix file systems. A
brief summary of the changes is:

lockfile: replace calls to exit() by boinc_finish() + make
boinc_finish() remove the lockfile

graphics-eventloop: some re-structuring and simplification to
make handling of glut-exits/abort-signals more robust.  Eric,
if you could test this under Solaris we'd be very grateful.

svn path=/trunk/boinc/; revision=5025
2005-01-08 01:17:51 +00:00
David Anderson 8d9317c11f *** empty log message ***
svn path=/trunk/boinc/; revision=4990
2005-01-03 20:35:32 +00:00
Bruce Allen f31b244f90 Modified CVS id strings. After some fussing with different versions
of gcc to try and force them to not complain with -Wall but to always
include this, I decided to take a simpler approach.  All these strings
now have global linkage.  To prevent namespace conflicts they all
have different names.  For the record, the variable extension is a hash made of the first ten characters of the md5sum of the file path, eg:
    md5hash=`boinc/api/x_opengl.C | md5sum | cut -c 1-10`

svn path=/trunk/boinc/; revision=4979
2005-01-02 18:29:53 +00:00
David Anderson 097c237fda *** empty log message ***
svn path=/trunk/boinc/; revision=4964
2004-12-30 03:33:53 +00:00
David Anderson 637aa3b688 *** empty log message ***
svn path=/trunk/boinc/; revision=4962
2004-12-30 03:03:26 +00:00
Bruce Allen c4c6f4be40 make X/Unix graphics not fail if GLUT calls abort(3). This
generated a SIGARBT.  We now catch this signal.  In the
graphics thread, this just restarts the graphics init process
(with some sleep(2)ing if needed to prevent a busy fail loop).
If the signal is caught in the main thread, we restore the old
signal handler then raise(SIGABRT).

David, note that when run standalone, killing the graphics
window does NOT kill the process.  I think this is fine, but
it doesn't correspond to what the documentation says.

svn path=/trunk/boinc/; revision=4958
2004-12-29 12:21:46 +00:00
Bruce Allen fd4265d93b fixes from Reinhard Prix to disable building of boincglut under
Darwin/Unix.  It's only needed under Windows. Also warn user if
GLUT libraries missing, and then build only non-graphical client
side code.

svn path=/trunk/boinc/; revision=4954
2004-12-28 15:58:24 +00:00
Bruce Allen 9c1fb7a931 We need to change the fixed 60 second interval to increasing intervals.
When glutInit fails it prints a line (~100 chars) to stdout.  If it does
this 60 times per hour, that's 6kB/hour.  After ten hours it will overflow
the blob for stderr.

svn path=/trunk/boinc/; revision=4953
2004-12-28 09:32:29 +00:00
David Anderson 177b530d0b *** empty log message ***
svn path=/trunk/boinc/; revision=4951
2004-12-28 03:39:52 +00:00
David Anderson 308a867493 *** empty log message ***
svn path=/trunk/boinc/; revision=4940
2004-12-26 06:08:11 +00:00
David Anderson 452c6831cc *** empty log message ***
svn path=/trunk/boinc/; revision=4927
2004-12-23 06:10:53 +00:00
Bruce Allen 02e1ab9770 Make boinc_time_to_checkpoint() return int not bool, for compability
with C API.

svn path=/trunk/boinc/; revision=4921
2004-12-22 15:02:03 +00:00
David Anderson 779ee206b7 *** empty log message ***
svn path=/trunk/boinc/; revision=4912
2004-12-21 06:05:44 +00:00
David Anderson e3e062bed5 *** empty log message ***
svn path=/trunk/boinc/; revision=4901
2004-12-19 07:53:02 +00:00
Rom Walton ab98339572 *** empty log message ***
svn path=/trunk/boinc/; revision=4900
2004-12-19 04:27:02 +00:00
David Anderson 2b539b7f1e *** empty log message ***
svn path=/trunk/boinc/; revision=4881
2004-12-17 19:59:35 +00:00
David Anderson 421cbcf75d *** empty log message ***
svn path=/trunk/boinc/; revision=4880
2004-12-17 19:55:08 +00:00
Bruce Allen fdb0556fa6 Added RCSID tags
svn path=/trunk/boinc/; revision=4862
2004-12-16 03:28:40 +00:00
Bruce Allen 0329a35667 Added RCSID at the end
svn path=/trunk/boinc/; revision=4861
2004-12-16 03:09:57 +00:00
David Anderson 751b0ebd9b *** empty log message ***
svn path=/trunk/boinc/; revision=4854
2004-12-15 19:35:42 +00:00
David Anderson 2da526fa0d *** empty log message ***
svn path=/trunk/boinc/; revision=4849
2004-12-15 00:38:19 +00:00
David Anderson 8cab8517fd *** empty log message ***
svn path=/trunk/boinc/; revision=4846
2004-12-14 20:28:13 +00:00
David Anderson 3db69edb05 *** empty log message ***
svn path=/trunk/boinc/; revision=4844
2004-12-14 19:23:46 +00:00
David Anderson 18f015b6ae *** empty log message ***
svn path=/trunk/boinc/; revision=4837
2004-12-13 19:14:54 +00:00
David Anderson 940c173597 *** empty log message ***
svn path=/trunk/boinc/; revision=4836
2004-12-13 19:09:15 +00:00
David Anderson 9400348974 *** empty log message ***
svn path=/trunk/boinc/; revision=4835
2004-12-13 19:03:10 +00:00
David Anderson cacd24f348 *** empty log message ***
svn path=/trunk/boinc/; revision=4834
2004-12-13 18:55:42 +00:00
Bruce Allen 4c8d4ae2b0 Typo
svn path=/trunk/boinc/; revision=4833
2004-12-13 01:41:57 +00:00
David Anderson 12e3ff46a6 *** empty log message ***
svn path=/trunk/boinc/; revision=4832
2004-12-13 01:21:50 +00:00
Bruce Allen 152699da36 Initialized NULL (in static initialized data segment anyway, but be
explicit).

svn path=/trunk/boinc/; revision=4831
2004-12-12 15:21:20 +00:00
Bruce Allen 7ac4351f56 graphics_lib_handle has to be extern C to be usable in a C program.
svn path=/trunk/boinc/; revision=4830
2004-12-12 15:07:27 +00:00
Bruce Allen 7211c18865 Added extern C declarations to a couple of header files:
- In graphics_lib.h, this is for compatibility with pure C
      applications.
    - In graphics_impl.h, this would be needed EVEN if we were
      never building app or library with anything other than C++.
      It's because dlsym() can only work if you pass it a non-name
      mangled symbol. Please see:
      http://www.isotton.com/howtos/C++-dlopen-mini-HOWTO/C++-dlopen-mini-HOWTO.html
      for futher edetail.
    - Comments added to graphics_lib.C, better error message.

svn path=/trunk/boinc/; revision=4829
2004-12-12 14:40:43 +00:00