steinbergmedia / vst3_base Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Hello,
I was just wondering where thread/include/fthread.h
got moved to or changed to? I am trying to rebuild the openglviewtest
example from VSTGUI
and fthread.h
appears to be missing. I read somewhere the file was moved to thread/include/flock.h
, but there are still some things missing in Base::Thread::FThread
like virtual uint32 entry()
. Where can I find the new FThread
class, or what should I be using in the newer SDK?
Edit: I found there is a class called FCondition
in thread/include/fcondition.h
which allows me to set a timeout for the thread using FCondition::waitTimeout(int32 milliseconds)
. Then I guess I can run the OpenGL draw call and the timeout in a while loop like the original openglviewtest.cpp
file does. Hopefully I am going in the right direction.
Hi, I believe there may exist a race condition at FObject::release
. (as of 3.7.1)
At function's end, the refCount
is reloaded a second time, after the atomic decrementation.
One could provide a slightly different implementation to prevent this.
int32 newCount = FUnknownPrivate::atomicAdd (refCount, -1);
if (newCount == 0)
{
refCount = -1000;
delete this;
return 0;
}
return newCount;
Taking the original implementation as a reference, I imagine we can met a following problem scenario:
(1) if (FUnknownPrivate::atomicAdd (refCount, -1) == 0)
{
refCount = -1000;
delete this;
(2) return 0;
}
(3) return refCount;
On Linux this works fine:
#include <windows.h>
but not this:
#include <Windows.h>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.