Commit Graph

152 Commits

Author SHA1 Message Date
Vitalii Koshura 44164f3cc0
Fix copyright symbol
This fxes #2493

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-04-30 23:29:15 +03:00
Vitalii Koshura a9d5b8ef1a
Fix copyright year
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2018-02-26 16:49:02 +02:00
Vitalii Koshura 9cdec17525
samples: Move 'strlen' function outside of the loop
From PVS Studio:
V814
Decreased performance. The 'strlen' function was called multiple times inside the body of a loop.
https://www.viva64.com/en/w/V814/print

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2017-05-02 16:10:13 +03:00
David Anderson 48f1720085 Merge pull request #1671 from DAD-Grid/android-wrapper
Fixed wrapper execution time error in android
2016-11-25 02:41:02 -08:00
Boincacm f6001b3d68 Fixed execution time error in android 2016-10-09 17:41:03 +00:00
David Anderson 3bb3235a83 wrapper: fix Win build (remove --version option) 2016-09-09 15:41:23 -07:00
Bernd Machenschalk 44d3274094 Wrapper: when specifying <forward_slashes/> in a task, replace '\' with '/' in boinc_resolve()d paths 2016-05-18 10:24:37 +02:00
Christian Beer 2ec53d3ebc Revert "wrapper: add feature to rename/move output files"
Feature is superfluous because <copy_file/> on an output file already renames/moves the file.

This reverts commit 1e77d82f5b.
2016-05-18 10:20:34 +02:00
Christian Beer e9da8ce7e5 Revert "Wrapper: fix comment"
Feature is superfluous because <copy_file/> on an output file already renames/moves the file.

This reverts commit 309f38fbaa.
2016-05-18 10:19:49 +02:00
Christian Beer e86eb29d28 Wrapper: print version information 2016-03-18 14:02:19 +01:00
Christian Beer 309f38fbaa Wrapper: fix comment 2016-03-18 11:53:30 +01:00
Bernd Machenschalk 0e974b226b wrapper: fix compiler warning 2016-03-18 11:27:02 +01:00
Bernd Machenschalk 5ef7edb4ef wrapper: if compiled with DEBUG, write debugging output 2016-03-18 11:27:02 +01:00
Christian Beer 920283c577 Wrapper: fix macro substitution
The macro substitution needs the APP_INIT_DATA aid object to be populated. This is only the case after boinc_init_options() and boinc_get_init_data() but the parsing of the job.xml happens before that. This commit moves the substitution step after the aid object is populated with the project directory.
2016-03-18 11:27:02 +01:00
Bernd Machenschalk 59bd029a92 wrapper: macro-replace "$PWD" with (absolute) current working directory 2016-03-18 11:27:02 +01:00
Bernd Machenschalk 1e77d82f5b wrapper: add feature to rename/move output files
The job file needs to contain

<rename_output>
  <filename>foo</filename>
</rename_output>

In the output template the logical name of that output file must be specified as "foo.link"

After completion, the file "foo" will be renamed/moved to the result file in teh project directory
2016-03-18 11:27:02 +01:00
Bernd Machenschalk a0a0dd2ac5 wrapper: fix do_zip_outputs(): resolve the zipfilename before checking for existence 2016-03-18 11:27:01 +01:00
Bernd Machenschalk 79168e1254 wrapper: resolve "boinc_resolve(...)" phrases in command-line 2016-03-18 11:27:01 +01:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
Christian Beer 7be2e1a91f Wrapper: fix exec_dir feature 2016-02-01 17:41:57 +01:00
Christian Beer 38205527dd Merge pull request #1435 from BOINC/fix_defects_apps
Fix defects in example apps
2015-11-19 22:59:42 +01:00
Rom Walton 0de56b1a59 wrapper: reclassify the wrapper as a console application on Windows.
This was a hold over from the Win9x days when a console application window could not be hidden by the processed that launched it.  Since we no longer need to support Win9x we can get rid of this hack.

NOTE: At some point parameter parsing and processing the job file was moved ahead of the diagnostics initialization code.  This had the unfortunate consequence of making errors that happened before the diagnostics code initialized disappear.

Switching wrapper to a console application will mean that launching it from a console window will cause the console window to block and display anything written to stderr/stdout regardless of whether the diagnostics code is initialized.
2015-11-19 13:52:18 -05:00
Christian Beer 6fba52425f Wrapper: prevent resource leak
fixes CID 34513 found by Coverity
2015-11-10 16:18:41 +01:00
David Anderson d503836a6a wrapper: check that task executables are in the list of app files from client 2015-09-23 00:02:52 -07:00
David Anderson 0ec084e705 wrapper: on Unix, get the task exit status with WEXITSTATUS()
How did the wrapper ever work on Unix?
Seems like it would think that every task failed.
2015-08-19 23:28:59 -07:00
David Anderson 5f53fe3077 wrapper: fix bug in reading checkpoint file; from Kevin Vinson 2015-04-21 11:51:00 -07:00
Charlie Fenton 9849b0005a Samples: Add Macintosh build instructions for example app (uppercase), VBoxWrapper and Wrapper 2015-04-14 07:34:42 -07:00
Charlie Fenton 689dc50349 Wrapper: fixes for compatibility with Xcode 6 2015-04-14 07:28:47 -07:00
Julien Nabet d75222ebf3 cppcheck: Prefer prefix ++/-- operators for non-primitive types 2015-01-14 21:18:29 +01:00
Rom Walton 8168008631 WRAPPER: Make creating/writing the graphics status file part of the job file configuration. No need to write it if there is not going to be a running graphics application. 2015-01-05 22:53:50 -05:00
Rom Walton f082889e85 WINBUILD: Fix build breaks introduced with graphics status function changes. 2015-01-05 20:37:51 -05:00
Rom Walton 8963495ec4 WRAPPER: Use new graphics_status API to inform htmlgfx what is going on. 2014-12-26 17:43:00 -05:00
David Anderson 317dc915b0 wrapper: let job.xml specify the process priorities of sub-tasks
Add optional <priority>N</priority> to <task> element to job.xml.
Lets you specify the process priority of the task;
in particular, task can run at high priority.
Apparently this is needed to make bitcoin ASIC apps perform well.
2014-10-13 11:35:16 -07:00
David Anderson 0f65225da8 wrapper (Win): fix possible bug in prioritizing child process 2014-10-12 11:42:19 -07:00
David Anderson 385e06562a wrapper: set process priority of tasks, not thread priority. 2014-10-09 14:46:10 -07:00
David Anderson 8d849304d2 wrapper: fix Win compile warnings 2014-10-09 12:32:59 -07:00
David Anderson 1cb8585ec0 wrapper: add <no_priority_change> task option; run task at normal priority 2014-10-09 12:27:10 -07:00
Rom Walton 952c064f18 * Fix version resource information for wrapper and vboxwrapper.
(From: Teemu Mannermaa)
2014-09-08 12:37:15 -04:00
David Anderson 64184333a7 wrapper: comment tweak 2014-07-16 19:28:33 -07:00
David Anderson 658547ccf6 wrapper: add --trickle X cmdline option to periodically report runtime
Add logic in wrapper to maintain and checkpoint total runtime.
Also vboxwrapper: slight refactor.

Note: we often use "elapsed time" where we mean "runtime".
Should use the latter.
2014-07-04 12:19:31 -07:00
Oliver Bock 88e840fc95 Normalized line breaks according to latest updates of .gitattributes
* As discussed with Rom
* See also: d81607b, e93af6a, 26ca219, 8dad345
2014-06-27 10:12:11 +02:00
David Anderson 0441285cf2 wrapper: fix comment 2014-06-20 19:32:53 -07:00
David Anderson 8992189045 tweaks (fix comments, compile warnings) 2014-06-20 17:15:04 -07:00
David Anderson 25422782a3 wrapper: macro-subsitute GPU_DEVICE_NUM in cmdline passed to app 2014-05-30 14:27:07 -07:00
David Anderson 4d6ebcf6a1 change "core client" to "client" in some comments. 2014-05-30 12:29:08 -07:00
Rom Walton 9f5e9a0b7e VBOX/WRAPPER: Introduce versioning information to the two wrappers. It is now compiled into the executable instead of relying on file name. 2014-05-21 13:57:16 -04:00
David Anderson aacf0b0344 wrapper: log task completion as well as start 2014-04-30 15:36:28 -07:00
Rom Walton 91570a3e46 WRAPPER: remove outdated build script 2014-04-18 17:10:11 -04:00
Rom Walton df17079ef5 WRAPPER: Remove the pthread library when building for Android. 2014-04-18 17:09:17 -04:00
Rom Walton 36d41d9edc WRAPPER: Fix for previous commit 2014-04-18 16:08:46 -04:00