Open Source Computer Vision Library
Go to file
Frédéric Devernay 4ad12a680c fix cap_qtkit.mm for multithreaded applications
cap_qtkit does not work when the capture is run outside of the main
thread.
If the capture is launched in a separate thread, then [NSRunLoop
currentRunLoop] is not the same as in the main thread, and has no timer.
see
https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/F
oundation/Classes/nsrunloop_Class/Reference/Reference.html
"If no input sources or timers are attached to the run loop, this
method exits immediately"

Using usleep() (which I previously proposed, and was reverted) is not a
good alternative, because it may block the GUI.

Here is the new proposed solution:
- create a dummy timer so that runUntilDate does not exit immediately
- simplify the loop by using runUntilDate instead of runMode:beforeDate
- fix potential memory leaks (pointed out by Xcode's static analysis)
- fix init to follow Objective-C guidelines
- fax warnings about conversions from size_t to int
2013-07-26 18:39:03 +02:00
3rdparty Warning suppresion for TBB on WinRT added. 2013-07-24 09:21:30 +04:00
apps Replaced most of the usages of parallel_for with that of parallel_for_. 2013-05-31 12:22:04 +04:00
cmake updated default parameters for CUDA CC in CMake: 2013-07-18 09:44:00 +04:00
data Added smile detector 2013-02-21 17:17:34 +01:00
doc Merge pull request #1168 from StevenPuttemans:feature_2753 2013-07-23 11:54:40 +04:00
include Normalize line endings and whitespace 2012-10-17 15:32:23 +04:00
modules fix cap_qtkit.mm for multithreaded applications 2013-07-26 18:39:03 +02:00
platforms OpenCV Manager version++. 2013-07-05 12:07:04 +04:00
samples Various fixes in android sample NativeActivity. 2013-07-05 14:08:37 +04:00
.gitattributes Fix typo in .gitattributes. 2013-06-05 13:51:11 +04:00
.gitignore Changed the file .gitignore 2012-08-28 17:46:45 +04:00
CMakeLists.txt Merge pull request #929 from dominikrose:mingw-libdc1394-2-windows 2013-06-14 15:46:25 +04:00
index.rst android -> plarforms/android 2013-05-27 11:10:38 +04:00
README Replace the pull request guidelines with a link to the wiki. 2013-05-27 17:48:34 +04:00

OpenCV: open source computer vision library

Homepage:    http://opencv.org
Online docs: http://docs.opencv.org
Q&A forum:   http://answers.opencv.org
Dev zone:    http://code.opencv.org

Please read before starting work on a pull request:
  http://code.opencv.org/projects/opencv/wiki/How_to_contribute

Summary of guidelines:

* One pull request per issue;
* Choose the right base branch;
* Include tests and documentation;
* Clean up "oops" commits before submitting;
* Follow the coding style guide.