Commit Graph

134 Commits

Author SHA1 Message Date
Charlie Fenton ae7601a412 example_app: Remove -fvisibility* compiler flags from all 3 Mac build methods
svn path=/trunk/boinc_samples/; revision=14999
2008-04-02 00:23:30 +00:00
David Anderson 5f015a005f - example graphics app: if no heartbeat, quit after 5 seconds
svn path=/trunk/boinc_samples/; revision=14988
2008-03-31 17:05:12 +00:00
David Anderson cfc5b5a230 - multi_thread: suspend/resume didn't work in the Unix implementation.
REMINDER TO SELF: you can't suspend or resume pthreads - period.
    So I changed things so that in the Unix implementation,
    we fork a second process, in which the threads run.
    The first process handles suspend/resume messages
    by signaling the 2nd process.
    The 2nd process generates system messages (frac done, CPU time)

svn path=/trunk/boinc_samples/; revision=14977
2008-03-28 17:39:00 +00:00
Charlie Fenton cb3da20d48 example_app: Fixes to Mac build script
svn path=/trunk/boinc_samples/; revision=14976
2008-03-28 11:19:44 +00:00
Charlie Fenton 181680e1f1 example_app: Fixes to Mac build script.
svn path=/trunk/boinc_samples/; revision=14972
2008-03-27 23:34:30 +00:00
David Anderson 6d90f48829 - multi_thread: maintain fraction done;
get nthreads from command line, not init file

svn path=/trunk/boinc_samples/; revision=14965
2008-03-27 18:00:40 +00:00
Charlie Fenton 7eb38d2825 svn path=/trunk/boinc_samples/; revision=14962 2008-03-26 15:07:43 +00:00
Charlie Fenton f7218cfa05 Update Mac makefile and build script, create second, stand-alone Mac makefile
svn path=/trunk/boinc_samples/; revision=14961
2008-03-26 14:43:00 +00:00
Charlie Fenton 3ae2111de6 Invoke script with sh instead of source; fix comments.
svn path=/trunk/boinc_samples/; revision=14960
2008-03-25 14:00:08 +00:00
Charlie Fenton 10956721fb example_app: Create Mac makefile and build script to demonstrate building project applications for the Mac using makefiles.
svn path=/trunk/boinc_samples/; revision=14959
2008-03-25 12:25:34 +00:00
David Anderson 38d9099b47 - multi-thread: the Windows version was running unexpectedly fast.
It turned out that the VS2005 C++ compiler was noticing
		that giga_flop() didn't use any inputs or globals,
		so it was caching its value after the first run.
		Very impressive!

svn path=/trunk/boinc_samples/; revision=14952
2008-03-20 22:52:16 +00:00
David Anderson 31b604a77b - multi_thread: default to 1 thread; print to stderr at end
svn path=/trunk/boinc_samples/; revision=14939
2008-03-18 21:15:21 +00:00
David Anderson 27caca9ef2 svn path=/trunk/boinc_samples/; revision=14915 2008-03-14 19:55:55 +00:00
David Anderson 68531f2076 - added example multi-thread application
svn path=/trunk/boinc_samples/; revision=14912
2008-03-14 17:35:22 +00:00
Rom Walton 142cb160e6 - Uppercase: Initialize the diagnostics framework for graphics
application.

    example_app/
        uc2_graphics.C

svn path=/trunk/boinc_samples/; revision=14910
2008-03-14 01:50:38 +00:00
Charlie Fenton e44e51b14e UpperCase: delete XCode project for deprecated uppercase application
svn path=/trunk/boinc_samples/; revision=14891
2008-03-11 10:01:54 +00:00
Charlie Fenton d0ed03a2e2 Delete deprecated uppercase project file
svn path=/trunk/boinc_samples/; revision=14890
2008-03-11 09:53:14 +00:00
David Anderson 98815d0b82 - compile fixes for Win
svn path=/trunk/boinc_samples/; revision=14882
2008-03-10 22:53:01 +00:00
David Anderson 6131537c57 - wrapper: compile fixes for Mac
- delete uppercase/


svn path=/trunk/boinc_samples/; revision=14873
2008-03-09 18:18:21 +00:00
David Anderson 1345448cb5 - fix #if
svn path=/trunk/boinc_samples/; revision=14869
2008-03-07 17:53:58 +00:00
David Anderson c6a1211706 - Wrapper (Mac): use elapse wall time as CPU time;
there's no easy way to get another process's CPU time in Mac OS X

svn path=/trunk/boinc_samples/; revision=14867
2008-03-07 04:43:08 +00:00
David Anderson 3802e31e37 compile fix
svn path=/trunk/boinc_samples/; revision=14864
2008-03-06 18:34:32 +00:00
David Anderson 08026c94f1 - wrapper (Win): suspend or resume all the threads in an app,
not just the initial one.
- wrapper: merge app_suspended and TASK::suspended variables

svn path=/trunk/boinc_samples/; revision=14862
2008-03-06 18:31:33 +00:00
David Anderson 480f497e03 - wrapper: if a child exits with nonzero status X,
call boinc_finish() with ERR_CHILD_FAILED rather than X.
    If X is zero in the low-order byte
    (e.g. if the program isn't executable)
    the BOINC client will restart us, which isn't what we want.

svn path=/trunk/boinc_samples/; revision=14858
2008-03-06 16:15:17 +00:00
David Anderson 1e1c8ee5bf - uppercase is deprecated
svn path=/trunk/boinc_samples/; revision=14790
2008-02-25 22:46:11 +00:00
Charlie Fenton 08e1acebec Mac: Add an application icon to example_app graphics application
svn path=/trunk/boinc_samples/; revision=14769
2008-02-21 11:39:03 +00:00
Charlie Fenton 25f3f0fe46 Mac: Restore "-DAPP_GRAPHICS" to XCode project C flags.
svn path=/trunk/boinc_samples/; revision=14763
2008-02-20 01:05:01 +00:00
David Anderson 67f553ffbb project file fix
svn path=/trunk/boinc_samples/; revision=14727
2008-02-12 20:50:15 +00:00
David Anderson eee33e34e2 - print error return from boinc_init()
svn path=/trunk/boinc_samples/; revision=14638
2008-01-29 20:10:46 +00:00
David Anderson cbe6b403b1 - example app: parse <max_frames_sec> and <max_gfx_cpu_pct>
from project-specific prefs.  This gives the user a couple
        of ways of limiting CPU usage for graphics.
    - example app: define APP_GRAPHICS in project file, not source

svn path=/trunk/boinc_samples/; revision=14636
2008-01-29 19:55:25 +00:00
David Anderson 345c38ae9c - small bug fix
svn path=/trunk/boinc_samples/; revision=14476
2008-01-06 22:27:35 +00:00
Charlie Fenton d88125b85d Mac: Add x86_64_Deployment build configuration to XCode project
svn path=/trunk/boinc_samples/; revision=14312
2007-11-28 09:58:06 +00:00
David Anderson 4e5f7f21c4 - wrapper, Win: if GetProcessTimes() fails (which it does on Win 98/ME),
use wall CPU time as estimate of CPU time

svn path=/trunk/boinc_samples/; revision=14308
2007-11-27 19:15:32 +00:00
David Anderson 1fd9f19713 svn path=/trunk/boinc_samples/; revision=13953 2007-10-24 22:08:16 +00:00
Charlie Fenton f73adeeb2f Mac: remove "-DAPP_GRAPHICS" from XCode project C flags
svn path=/trunk/boinc_samples/; revision=13695
2007-09-28 01:56:09 +00:00
Charlie Fenton 6a89910183 Mac: fix a compiler warning
svn path=/trunk/boinc_samples/; revision=13686
2007-09-27 15:20:24 +00:00
David Anderson aa29d13ac3 minor stuff
svn path=/trunk/boinc_samples/; revision=13680
2007-09-27 04:38:47 +00:00
David Anderson 9802607644 - example_app: don't set above flag (it's set by default now)
svn path=/trunk/boinc_samples/; revision=13677
2007-09-26 19:46:16 +00:00
Charlie Fenton 1aeb59ddac Port David's crash fix of 12 Sept
svn path=/trunk/boinc_samples/; revision=13665
2007-09-26 02:28:07 +00:00
Charlie Fenton 1983c90952 example_app: Set backwards_compatible_graphics" flag
svn path=/trunk/boinc_samples/; revision=13664
2007-09-26 02:27:51 +00:00
Charlie Fenton 0bd961780d example_app: Set backwards_compatible_graphics" flag; Port David's crash fix of 12 Sept into uc2_graphics.C
svn path=/trunk/boinc_samples/; revision=13663
2007-09-26 02:27:21 +00:00
David Anderson badf3f77ff svn path=/trunk/boinc_samples/; revision=13615 2007-09-20 20:34:24 +00:00
David Anderson 2d3be1dd51 - wrapper: fix append mode in win_fopen() (2nd try)
svn path=/trunk/boinc_samples/; revision=13614
2007-09-20 20:32:33 +00:00
David Anderson fea864af4d - uppercase: fix crash in standalone mode
- wrapper: fix append mode in win_fopen()

svn path=/trunk/boinc_samples/; revision=13585
2007-09-13 07:30:27 +00:00
Charlie Fenton f1e8b94d09 Mac: redirect stderr only on Development builds so as not to violate sandbox security
svn path=/trunk/boinc_samples/; revision=13535
2007-09-04 07:45:48 +00:00
Charlie Fenton bce4c060cf remove jpeg sources from worker app in example_app XCode project
svn path=/trunk/boinc_samples/; revision=13527
2007-09-03 05:17:15 +00:00
Charlie Fenton 48d805717b put boinc_graphics_get_shmem in main graphics loop to retry if worker application has not yet created shared memory; Mac: remove jpeg sources from worker app in example_app XCode project
svn path=/trunk/boinc_samples/; revision=13526
2007-09-03 05:16:53 +00:00
Charlie Fenton 946d5477b1 put boinc_graphics_get_shmem in main graphics loop to retry if worker application has not yet created shared memory
svn path=/trunk/boinc_samples/; revision=13525
2007-09-03 05:16:25 +00:00
Charlie Fenton 62cb6e749b boinc_graphics_get_shmem() must be called after boinc_parse_init_data_file()
svn path=/trunk/boinc_samples/; revision=13495
2007-08-29 14:58:22 +00:00
Charlie Fenton 1e5b4cd8ad svn path=/trunk/boinc_samples/; revision=13494 2007-08-29 14:17:37 +00:00