ultimatepp/uppdev/INTERLOCKED/INTERLOCKED.cpp
cxl 2e4b276e07 Merge continued
git-svn-id: svn://ultimatepp.org/upp/trunk@10263 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2016-10-04 08:34:39 +00:00

35 lines
No EOL
414 B
C++

#include <Core/Core.h>
using namespace Upp;
struct ILock {
operator bool() const { return true; }
ILock(int) { RLOG("Lock!"); }
~ILock() { RLOG("UnLock!"); }
};
CONSOLE_APP_MAIN
{
__BREAK__;
INTERLOCKED {}
Parallel x;
for(int i = 0; i < img.GetHeight(); i++)
x(callback1(DoLine, i));
x.Execute();
}
Pipeline y;
y.Start(callback(...));
void Loader()
{
}