CopyHandler

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Removed storing/loading of total size and processed size of data to/from archive.

Task API improvements - added thread proc delegation function to avoid calling CTask methods with 'pTask->'.

Removed option 'auto-resume on error' - wasn't really used, did not work properly.

Removed functionality creating n copies of the original file - it made code more complicated, preventing core code from rewriting (hopefully nobody uses it).

Bugfix: 100% of a processor used by the clipboard monitoring thread.

Corrected code formatting.

  1. … 6 more files in changeset.
Corrected code formatting.

    • -1
    • +1
    /ext/libicpf/src/libicpf/circ_buffer.h
    • -4
    • +4
    /ext/libicpf/src/libicpf/config_property.cpp
    • -26
    • +26
    /ext/libicpf/src/libicpf/libicpf.h
Corrected code formatting.

    • -1
    • +1
    /src/libictranslate/LanguageDialog.cpp
Extracted operation time tracking to a local stats object.

Re-used worker thread controller in clipboard monitoring functionality.

Got rid of unused error code/message field in status dialog.

Bugfix: wrong calculations of the processed/total size.

Removed unused code, made some order in methods' visibility (public/protected).

Changed thread management code to use events and thread waitability instead of volatile bool variables.

    • -0
    • +194
    /src/ch/TWorkerThreadController.cpp
    • -0
    • +58
    /src/ch/TWorkerThreadController.h
Bugfix: wrong handling of multiple input paths (task copied the first file over and over).

Bugfix: dereferencing NULL pointers caused crashes and deadlocks in some cases.

Removed unnecessary code (LastProcessedIndex).

Second part of changes in progress management - local task stats are now separate entities and does not block other functionality.

Removed unnecessary code aiding in detecting shutdown conditions for functionality "shutdown system after finished all operations".

Bugfix: got rid of some deadlocks when handling progress info.

Changed locking system from simple critical section in task objects (CTask, CTaskArray) to the boost::shared_lock for improved multi-threadedness and safety (might be a bit buggy though).

  1. … 4 more files in changeset.
Switched from CArray to std::vector in CTaskArray.

Bugfix: Fixed serialization problem (data streams were opened in text mode instead of binary).

Fixed problem with project not building itself after last getting rid of release-build warnings.

Changed compiler behavior to treat warnings as errors.

    • -0
    • +4
    /src/ictranslate/ictranslate.vc90.vcproj
Changed compiler behavior to treat warnings as errors.

    • -0
    • +4
    /ext/libicpf/src/libicpf/libicpf.vc90.vcproj
Changed compiler behavior to treat warnings as errors.

Fixed problem performing builds for 2 architectures - single pch name was used.

Simplified handling of some file access functions.

Got rid of some goto's.