This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It's take two day searching and trying to firgure out the correct way =))) | |
follow https://trac.ffmpeg.org/wiki/CompilationGuide/WinRT | |
-------BUT IT'S NOT WORK-------- | |
1. Make sure SET LIB ; SET LIBPATH ; SET INCLUDE with exist and right path(version, exist binary files...) | |
2. Make sure evironment path, environment variables point to right value/path. | |
--------If still cannot build, follow my way--------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <thread> | |
#include <mutex> | |
class RecursiveMutex { | |
public: | |
void lock() { | |
std::unique_lock<std::mutex> lock(m_mutex); | |
if (m_owner == std::this_thread::get_id()) { | |
// This thread already owns the lock, so increment the recursion count |