Commit Graph

573 Commits

Author SHA1 Message Date
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
Bruce Allen 2c59187f7e Trying to make C compatible
svn path=/trunk/boinc/; revision=4828
2004-12-12 12:25:31 +00:00
Bruce Allen 2f122a6fa9 Missing include files for make install
svn path=/trunk/boinc/; revision=4827
2004-12-12 12:19:42 +00:00
David Anderson e6fb58fee8 *** empty log message ***
svn path=/trunk/boinc/; revision=4826
2004-12-12 06:54:28 +00:00
David Anderson 330477238f *** empty log message ***
svn path=/trunk/boinc/; revision=4825
2004-12-11 18:38:19 +00:00
David Anderson 4e2d808e1b *** empty log message ***
svn path=/trunk/boinc/; revision=4823
2004-12-11 05:55:55 +00:00
David Anderson 9c968d3c2f *** empty log message ***
svn path=/trunk/boinc/; revision=4822
2004-12-11 01:27:47 +00:00
David Anderson f95374f49d *** empty log message ***
svn path=/trunk/boinc/; revision=4821
2004-12-11 01:16:36 +00:00
David Anderson 537c820866 *** empty log message ***
svn path=/trunk/boinc/; revision=4820
2004-12-11 01:01:19 +00:00
Bruce Allen 2af4e5e390 David, here's a rough pass, I haven't even tried to compile
it. Please read comments in-line.  I think the major
        shortcoming is
        that most (all?) apps will want to use 'handle' to resolve their
        own functions to communicate data from worker to app graphics.
        Perhaps we should provide an additional argument to
        boinc_init_graphics_lib() for that purpose?  At the right point,
        after sucessful dlopen(), boinc_init_graphics_lib() will call
        that user-supplied function (if not NULL) passing it handle.
        On return boinc_init_graphics_lib() will then carry on and start
        graphics.
        It's fun working on a file that's not in Makefile.  No guilt!

svn path=/trunk/boinc/; revision=4816
2004-12-10 23:33:41 +00:00
David Anderson 4150dcbacc *** empty log message ***
svn path=/trunk/boinc/; revision=4811
2004-12-10 21:06:42 +00:00
David Anderson b4aeaca73d fixed file upload bug
svn path=/trunk/boinc/; revision=4808
2004-12-10 04:18:40 +00:00
David Anderson 3c3a9eebdf *** empty log message ***
svn path=/trunk/boinc/; revision=4807
2004-12-10 00:57:20 +00:00
Bruce Allen 18b001a1f2 Removed line continuation in comments
svn path=/trunk/boinc/; revision=4805
2004-12-09 16:45:22 +00:00
Bruce Allen 5d8366ca43 Removed bmplib.C tgalib.C from api/Makefile.am as workaround
for missing header files + code.  Note: header files must also
be listed among source files!

svn path=/trunk/boinc/; revision=4804
2004-12-09 10:45:27 +00:00
David Anderson f4ef0f5126 *** empty log message ***
svn path=/trunk/boinc/; revision=4801
2004-12-09 01:07:01 +00:00