David Anderson
ce28e6792e
Code cleanup in preparation for fixing GPU detect issue
...
lib/util.cpp had become a landfill of unrelated stuff
- move the process-related code to lib/proc_control.cpp
- move file-related code to lib/filesys.cpp
- move client mutex code to client/main.cpp
The client has 2 unrelated types of mutual exclusion:
thread level (between the main and throttle threads)
and process level (prevent 2 clients from running on a host).
- Rename "client_mutex" to "client_thread_mutex".
- parse.h: don't declare boinc_is_finite(); include the .h file
2023-04-09 14:53:59 -07:00
Vitalii Koshura
3c26729b49
Merge pull request #5182 from BOINC/mac_wx316
...
Mac: upgrade tp wxWidgets 3.1.6
2023-04-06 15:47:06 +02:00
Charlie Fenton
bbe7e935a8
Mac_SA_Secure.sh utility: revised setprojectgrp ownership to match changes from PR #5061
2023-04-06 06:08:51 -07:00
Charlie Fenton
99abcae763
Mac uninstaller: fix compiler warning
2023-04-06 04:54:40 -07:00
Charlie Fenton
52cc75cbd5
Mac build scripts: fix args now accepted by patch uility; set mmacosx-version-min, arm64-apple-macos10.10 to 10.13
2023-04-06 04:54:09 -07:00
Charlie Fenton
1bed9a9831
Mac: changes needed for wxWidgets 3.1.6 and for args now accepted by patch utility
2023-04-06 04:50:24 -07:00
Vitalii Koshura
5d4f9b3a54
Merge pull request #5181 from talregev/TalR/DVCPKG_INSTALLED_DIR
...
[Bugfix][cmake] Change to DVCPKG_INSTALLED_DIR in cmake builds
2023-04-05 11:02:58 +02:00
Tal Regev
d46a1e19a0
Change to DVCPKG_INSTALLED_DIR in cmake builds
2023-04-05 11:16:12 +03:00
Vitalii Koshura
25b6bc8a88
Merge pull request #5178 from BrianNixon/manager_sort_requests
...
[Manager] Sort requests to suspend/resume/abort multiple tasks
2023-04-04 12:53:42 +02:00
Brian Nixon
d4f6f53a15
const-ify string pointer types
2023-04-04 11:18:39 +01:00
Brian Nixon
356b2cb9d3
Use range-for
2023-04-04 11:14:45 +01:00
Brian Nixon
ee19e7f82d
Sort requests to suspend/resume/abort multiple tasks
2023-04-03 21:34:51 +01:00
Vitalii Koshura
80050f1b09
Merge pull request #5174 from BrianNixon/manager_minimized_close
...
[Manager][Windows] Prevent close request on minimized window exiting the app
2023-03-31 03:36:58 +02:00
Vitalii Koshura
b594b517a1
Merge pull request #5175 from BOINC/dpa_am_starve
2023-03-31 02:25:53 +02:00
David Anderson
5fdfbf10f7
client: when using AM and checking for idle devices, include CPU
2023-03-30 15:22:04 -07:00
David Anderson
5f85e7ea72
add some comments
2023-03-30 13:24:44 -07:00
David Anderson
dca2eb8a0a
client: print messages (work_fetch_debug) if AM projects are resulting in starvation
2023-03-29 16:44:56 -07:00
Vitalii Koshura
3b0ceb04bb
Merge pull request #5173 from BOINC/dpa_cpu_usage3
...
Client, Win: include kernel time in non-BOINC CPU usage
2023-03-29 23:45:47 +02:00
Brian Nixon
374edda15d
[Windows] Prevent close request on minimized window exiting the application
2023-03-29 16:45:06 +01:00
davidpanderson
ccf1669549
Client, Win: include kernel time in non-BOINC CPU usage
2023-03-28 19:22:35 -07:00
Vitalii Koshura
6cdb928fe4
Merge pull request #5172 from BOINC/dpa_excl
...
client: print log message (conditioned on log_flags.task) when an exclusive app or exclusive GPU app starts or stops.
2023-03-29 01:34:26 +02:00
davidpanderson
dfa9ad3516
Bug fixes
2023-03-28 01:29:22 -07:00
David Anderson
a54c14aa1c
client: print log message (conditioned on cpu_sched) when an
...
exclusive app or exclusive GPU app starts or stops.
2023-03-28 01:12:35 -07:00
Vitalii Koshura
4a7a904ba6
Merge pull request #5171 from BrianNixon/wrapper_process_creation
...
[Wrapper] Add logging of child process PID, plus minor fixes for Windows
2023-03-27 18:29:29 +02:00
Brian Nixon
a71d9906e0
Revert cc5d388c53
2023-03-27 17:14:28 +01:00
Vitalii Koshura
268cddb149
Merge pull request #5170 from BrianNixon/win_launcher_handle_leak
...
[Windows Installer] Prevent handle leaks
2023-03-27 17:58:30 +02:00
Brian Nixon
7741294481
Close thread and process handles on Windows
2023-03-27 15:27:27 +01:00
Brian Nixon
cc5d388c53
Correct inheritance of stdout by child process on Windows
2023-03-27 15:22:52 +01:00
Brian Nixon
587a8ebff9
Log PID of created child process
...
Useful on Windows, where we otherwise have to go rummaging in undocumented internals to find process parent-child relationships
2023-03-27 15:20:30 +01:00
Brian Nixon
ea3b47630e
Close thread and process handles
2023-03-27 14:57:24 +01:00
Vitalii Koshura
c0d4058b47
Merge pull request #5167 from BOINC/dpa_file_check
...
client: improve file checking on task start
2023-03-27 00:32:32 +02:00
Vitalii Koshura
e252be62ff
Fix comment typo
...
Co-authored-by: Brian Nixon <nixonb@yahoo.com>
2023-03-27 00:31:48 +02:00
Vitalii Koshura
3f6a46f633
Merge pull request #5169 from BOINC/dpa_rdp_fix
...
client, Win: fix typo in writing cc_config.xml "no_rdp_check" entry
2023-03-27 00:28:32 +02:00
David Anderson
d704a54e18
Update README.md
2023-03-26 13:56:59 -07:00
David Anderson
0a44702dc8
Update README.md
2023-03-26 13:53:17 -07:00
David Anderson
964a074485
Update README.md
2023-03-26 13:50:40 -07:00
David Anderson
2acb0dae7a
client, Win: fix typo in writing cc_config.xml "no_rdp_check" entry
2023-03-26 12:46:59 -07:00
David Anderson
2667361d2c
comment tweak
2023-03-26 12:11:57 -07:00
David Anderson
3bf163382e
comment tweak
2023-03-26 12:03:40 -07:00
David Anderson
17c7476389
Merge branch 'dpa_file_check' of github.com:BOINC/boinc into dpa_file_check
2023-03-26 00:02:32 -07:00
David Anderson
e57fbb6bd4
client: more accurate messages when a task file is missing or wrong size
2023-03-26 00:01:09 -07:00
davidpanderson
1756085a1e
Fix small bug
...
Fix problem in boinc_stdio.h
2023-03-25 19:29:15 -07:00
David Anderson
892802b957
client: improve file checking on task start
...
When a task starts:
- don't re-checksum its files.
This was already done after the file was downloaded.
Doing it again doesn't accomplish anything,
and causes performance problems if the file is big.
- do check that the files exist and have the right size
- if the program launch (e.g. exec()) fails,
re-checksum the app version files on the (unlikely) chance
that one of them was accidentally corrupted.
2023-03-25 19:00:19 -07:00
Vitalii Koshura
4db1c2b63d
Merge pull request #5163 from BOINC/dpa_win_cleanup2
...
Fix some compile warnings on Win (VS 2022).
2023-03-23 08:46:39 +01:00
David Anderson
c29a4dac80
Fix a few compile warnings in client simulator.
...
Use snprintf() instead of sprintf() in a few places
(should eventually do it everywhere)
Notes:
(void)x;
seems to work (cross-platform) for suppressing unused arg warnings.
int n;
n = snprintf(buf, sizeof(buf), ....)
(void)n;
works in some cases for suppressing buffer-size warnings.
But not all cases. Not sure why.
2023-03-22 17:09:43 -07:00
davidpanderson
b0993f7cb7
Fix warnings in Win client simulator build
2023-03-22 16:30:04 -07:00
David Anderson
7874b96217
Fix warnings in client simulator build
2023-03-22 16:25:26 -07:00
David Anderson
bd3bf72dbd
Linux: compile fix
2023-03-22 15:22:03 -07:00
davidpanderson
6f4b8e5d43
Fix some compile warnings on Win (VS 2022).
...
Remove outdated stuff (e.g. VS has snprintf() now).
I'd like to have a clean build (no warnings) on both VS and gcc.
Currently VS has a bunch of printf code warnings in
diagnostics.cpp, diagnostics_win.cpp, and stackwalker_win.cpp.
These should be easy to fix.
gcc has a bunch of sprintf buffer-size warnings, not easy to fix.
There are lots of warnings in zip (to be fixed with vcpkg?)
and in old graphics code.
2023-03-22 14:23:14 -07:00
Vitalii Koshura
b8b95c34c9
Merge pull request #5162 from AenBleidd/vko_fix_build_nanosvg
...
[Windows] Fix build error after wxWidgets update
2023-03-22 14:06:39 +01:00