os-70-350

os-70-350 Commit Details


Date:2013-12-15 16:45:30 (11 years 8 months ago)
Author:Natalie Adams
Branch:master
Commit:979613bab703bea48018eb6e2321cf5e8a014403
Parents: 5a87c0c0f0eeb63fffdf4d4e5f2b3d4bd2880876
Message:Adding ptypes threads

Changes:

File differences

ptypes-threads/buid.sh
1
2
3
4
#!/bin/bash
gcc -o main -lptypes main.cpp
./main
ptypes-threads/build.bat
1
2
3
4
5
6
7
@echo off
::pushd ..
::set parent=%cd%
::popd
call ../vcppbuild.bat main "/link /LIBPATH:../ext/libs"
main.exe
pause
ptypes-threads/main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <ptypes\pasync.h>
#include <stdio.h>
#pragma comment(lib, "../ext/libs/ptypes.lib")
#pragma comment(lib, "user32.lib")
USING_PTYPES
class threadtest : public thread
{
protected:
virtual void execute();
virtual void cleanup() { }
public:
threadtest() : thread(false) { }
};
void threadtest::execute()
{
int i;
for(i = 0; i < 10; i++)
printf("%i\n", i);
}
int main()
{
threadtest t1, t2;
t1.start();
t2.start();
t1.waitfor();
t2.waitfor();
}
vcppbuild.bat
1313
1414
1515
16
16
1717
goto compile
)
:compile
cl.exe /clr %1.cpp
cl.exe /clr /D WIN32 /I"..\ext\include" %1.cpp %2
del %1.obj

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.15302s using 14 queries.