Commit Graph

32 Commits

Author SHA1 Message Date
Rom Walton 35a7aff5f3 lib: Add missing entry for Charity Engine when identifying an application as a BOINC app or not. 2013-10-23 14:19:04 -04:00
David Anderson 24e8133e4b - tabs -> spaces 2013-04-02 17:23:37 -07:00
David Anderson 53782b7de4 - lib: switch include order to the way it was (general to specific).
Should fix MinGW compile


svn path=/trunk/boinc/; revision=26008
2012-08-11 05:47:18 +00:00
David Anderson 405f567c81 - code cleanup: in foo.cpp, include foo.h first
svn path=/trunk/boinc/; revision=25933
2012-08-01 20:04:05 +00:00
David Anderson 813470f08d - Bad logic in Win code:
if you have
        *pbuf = HeapAlloc(...)
    then you need
        if (*pbuf == NULL)
    not
        if (pbuf == NULL)
- various code cleanups from 
- Makefile.am: don't include clientgui/res; nothing to make there

from Steffen Moeller


svn path=/trunk/boinc/; revision=25599
2012-04-25 07:09:14 +00:00
David Anderson 68b3fe6b19 - client: fix crashing bug when there's a cycle in the process graph.
I had fixed this in one place but not another.
- client: don't memset(0,) a PROCINFO; use clear() instead


svn path=/trunk/boinc/; revision=24431
2011-10-19 07:49:23 +00:00
David Anderson 3eabc15a84 - lib: minor code shuffle
svn path=/trunk/boinc/; revision=24126
2011-09-02 22:06:30 +00:00
David Anderson 1aa8675162 - win compile fixes
svn path=/trunk/boinc/; revision=24118
2011-09-02 17:57:18 +00:00
David Anderson b16f603a8a - client (and API and manager): change the data structure
used for system process info
    Old: vector of PROCINFO.
        Descendants of a process were found by recursively
        iterating through the vector.
        Operations are O(n)
    New: map of (id, PROCINFO),
        and each PROCINFO has a vector of its children.
        Operations are O(log(n))
    Also combined Mac/Win/Linux variants of code that
    was essentially the same.


svn path=/trunk/boinc/; revision=24117
2011-09-02 17:45:29 +00:00
David Anderson 90a1348a10 - wrapper: fixes from Carl
svn path=/trunk/boinc/; revision=23105
2011-02-24 23:21:55 +00:00
David Anderson f9d5fbaf77 - client: win compile fix
svn path=/trunk/boinc/; revision=23086
2011-02-23 00:02:06 +00:00
David Anderson a0fd3445fc - wrapper: improve and bullet-proof the way we kill apps.
Win: enumerate all descendants, and kill them all TerminateProcess().
    Unix:
        send the main process a SIGTERM.
        Check once a sec for existence of descendants.
        if none, done
        If any still exist after 10 sec, kill all descendants
- wrapper fix bug in Win env var stuff
- scheduler: check for VBox version 3.2+ in app_plan()
    

svn path=/trunk/boinc/; revision=23085
2011-02-22 23:11:34 +00:00
David Anderson 29c3220c75 - client: in computing non-BOINC CPU time,
ignore ACTIVE_TASKs that don't have a process.
	- client: bug fix to previous checkin

svn path=/trunk/boinc/; revision=22423
2010-09-29 18:15:24 +00:00
David Anderson c6270ed0b7 - client: if a process has priority <= that of BOINC apps,
don't include it in non-BOINC CPU time.
    Otherwise the presence of such a process could
    prevent BOINC from running apps.
    (Windows only - will do Unix/Mac later)

svn path=/trunk/boinc/; revision=22422
2010-09-29 16:45:47 +00:00
Rom Walton e01ab98f71 - lib: Make procinfo_win.cpp Unicode compatible.
lib/
        procinfo_win.cpp

svn path=/trunk/boinc/; revision=22192
2010-08-11 16:35:06 +00:00
David Anderson 28fb7e7889 - fix compile warnings
svn path=/trunk/boinc/; revision=21567
2010-05-18 20:16:46 +00:00
Charlie Fenton 07d2a34ba7 client: Improve code for determining non-BOINC CPU time for branded clients (Mac & Windows)
svn path=/trunk/boinc/; revision=21189
2010-04-15 23:03:22 +00:00
Charlie Fenton 7787d8ef66 client: Improve code for determining non-BOINC CPU time for branded clients (Mac & Windows)
svn path=/trunk/boinc/; revision=21188
2010-04-15 23:02:13 +00:00
Charlie Fenton db6f3b13bb client: Add code for determining non-BOINC CPU time for GR and PtP clients (Mac & Windows)
svn path=/trunk/boinc/; revision=21171
2010-04-13 09:42:19 +00:00
Charlie Fenton 97333885a0 client: Add code for determining non-BOINC CPU time for GR and PtP clients (Mac & Windows)
svn path=/trunk/boinc/; revision=21170
2010-04-13 09:40:22 +00:00
Charlie Fenton ab7df01162 client: Add code for determining non-BOINC CPU time for GR and PtP clients (Mac & Windows)
svn path=/trunk/boinc/; revision=21169
2010-04-13 08:52:50 +00:00
David Anderson 2d7fdacba8 - client: don't include graphics apps in non-BOINC CPU time (Unix).
svn path=/trunk/boinc/; revision=21133
2010-04-07 16:04:36 +00:00
David Anderson 84861e7c55 - client: don't include graphics apps in non-BOINC CPU time
svn path=/trunk/boinc/; revision=21131
2010-04-07 05:54:20 +00:00
David Anderson 3494f5bd0c svn path=/trunk/boinc/; revision=20911 2010-03-16 00:07:58 +00:00
David Anderson 143d03e318 - client: in computing non-BOINC CPU time,
exclude any process whose executable includes "boinc", case-insensitive.
    Fix problem with BoincTasks.exe

svn path=/trunk/boinc/; revision=20910
2010-03-15 23:28:23 +00:00
David Anderson f5ab42494a - client: fix typos
svn path=/trunk/boinc/; revision=20581
2010-02-16 01:00:35 +00:00
David Anderson 94e789c0d8 svn path=/trunk/boinc/; revision=20567 2010-02-15 01:04:59 +00:00
David Anderson 768f3bfe0b - client: include CPU usage of client in BOINC total.
Also include manager if its name includes "boinc"
    (can't figure out another way)

svn path=/trunk/boinc/; revision=20566
2010-02-15 01:00:32 +00:00
David Anderson 20d6b06f5f - client: initial checkin for "don't compute if CPU usage above X"
svn path=/trunk/boinc/; revision=20192
2010-01-19 00:03:38 +00:00
David Anderson 0b6197dc7d svn path=/trunk/boinc/; revision=16085 2008-09-29 03:04:39 +00:00
David Anderson ab57184a3a - prepare for "don't run while playing game" feature
svn path=/trunk/boinc/; revision=16084
2008-09-29 01:55:58 +00:00
David Anderson 98cfb8d3b0 - rename .C files to .cpp so that Doxygen will work
svn path=/trunk/boinc/; revision=16069
2008-09-26 18:20:24 +00:00