puremvc / puremvc-cpp-multicore-framework Goto Github PK
View Code? Open in Web Editor NEWPureMVC MultiCore Framework for C++
Home Page: http://puremvc.org
License: Other
PureMVC MultiCore Framework for C++
Home Page: http://puremvc.org
License: Other
my solution is:
first solution: change PureMVC.cpp
from:
to:
second solution: change PureMVC.cpp, int Mutex::Mutex(void)
from:
::pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
to:
::pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
::pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
I don't know which is better.
hello~Cliff. I am new to C++, I don't know how to use puremvc. could you please provide an example?
In c++ virtual methods defined by the base class called from its constructor won't be correctly resolved to overridden methods defined in the derived class like in Java.
Eg:
class StartupCommand : public Patterns::MacroCommand, virtual public Interfaces::ICommand
{
public:
// Override
virtual void initializeMacroCommand() override;
};
void StartupCommand::initializeMacroCommand()
{
addSubCommand(new PrepViewCommand());
addSubCommand(new PrepModelCommand());
}
In this case, overridden initializeMacroCommand() will not be called.
This in-constructor behavior might need to be changed to normal methods
that get called on registration or a more proper time.
command:
./configure
make
log:
~/puremvc-cpp-multicore-framework-master$ make
/home/Administrator/puremvc-cpp-multicore-framework-master/bk-deps g++ -c -o PureMVC_lib_PureMVC.o -DNDEBUG -DNDEBUG -Iinclude -O2 ./src/PureMVC/PureMVC.cpp
In file included from include/PureMVC/Interfaces/IController.hpp:22:0,
from include/PureMVC/PureMVC.hpp:222,
from ./src/PureMVC/Common.hpp:49,
from ./src/PureMVC/PureMVC.cpp:9:
include/PureMVC/Interfaces/IAggregate.hpp:36:26: error: ‘unique_ptr’ in namespace ‘std’ does not name a template type
typedef std::unique_ptr<IIterator<_Type> > Iterator;
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.