mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
.upptst
git-svn-id: svn://ultimatepp.org/upp/trunk@13772 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
aa15ac998e
commit
d0d553a655
3 changed files with 39 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ struct Val : Moveable<Val, TypeInfo> {
|
|||
Val DeRef(Val val_v)
|
||||
{
|
||||
DDUMP(&val_v);
|
||||
val_v.ref--;
|
||||
val_v.ref--; // todo; DBGHELP problem here
|
||||
val_v.rvalue = false;
|
||||
return val_v;
|
||||
}
|
||||
|
|
@ -71,9 +71,22 @@ void Test3(String *ptr_s)
|
|||
DDUMP(ptr_s);
|
||||
DUMP(*ptr_s);
|
||||
}
|
||||
|
||||
GUI_APP_MAIN
|
||||
{
|
||||
{
|
||||
Vector<int> x;
|
||||
for(int i = 0; i < 100000; i++)
|
||||
x.Add(i);
|
||||
int *h = x;
|
||||
h = NULL;
|
||||
}
|
||||
{
|
||||
Tuple<int, int *> h;
|
||||
int q[] = { 1, 2, 3, 4, 5 };
|
||||
h.b = q;
|
||||
h.a = 123456789;
|
||||
h.b = NULL;
|
||||
}
|
||||
{
|
||||
Value a = Rectf(1, 1, 1, 1);
|
||||
Value b = Rectf(1, 2, 3, 4);
|
||||
|
|
|
|||
15
upptst/TimedSemaphoreCV/TimedSemaphoreCV.cpp
Normal file
15
upptst/TimedSemaphoreCV/TimedSemaphoreCV.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <Core/Core.h>
|
||||
|
||||
using namespace Upp;
|
||||
|
||||
CONSOLE_APP_MAIN
|
||||
{
|
||||
// this is just compilation check:
|
||||
|
||||
Semaphore s;
|
||||
s.Wait(1000);
|
||||
|
||||
Mutex m;
|
||||
ConditionVariable cv;
|
||||
cv.Wait(m, 1000);
|
||||
}
|
||||
9
upptst/TimedSemaphoreCV/TimedSemaphoreCV.upp
Normal file
9
upptst/TimedSemaphoreCV/TimedSemaphoreCV.upp
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
uses
|
||||
Core;
|
||||
|
||||
file
|
||||
TimedSemaphoreCV.cpp;
|
||||
|
||||
mainconfig
|
||||
"" = "";
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue