Permalink
Browse files

coroutine, feat: use hrtime to implement sleep.

  • Loading branch information...
xicilion committed Dec 21, 2017
1 parent 9abe80f commit 4ded2bd6cadefed94648ccf869a46e12b7c73628
View
@@ -296,6 +296,7 @@
<ClInclude Include="include\ifs\coroutine.h" />
<ClInclude Include="include\ifs\crypto.h" />
<ClInclude Include="include\ifs\db.h" />
<ClInclude Include="include\ifs\dns.h" />
<ClInclude Include="include\ifs\encoding.h" />
<ClInclude Include="include\ifs\fs.h" />
<ClInclude Include="include\ifs\gd.h" />
@@ -349,7 +350,6 @@
<ClInclude Include="include\version.h" />
<ClInclude Include="src\db\sql\trans.h" />
<ClInclude Include="src\gui\windows\WebView.h" />
<ClInclude Include="src\process\process_hrtime.h" />
<ClInclude Include="src\sandbox\loaders\loaders.h" />
</ItemGroup>
<ItemGroup>
@@ -726,6 +726,9 @@
<ClInclude Include="include\ifs\db.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
<ClInclude Include="include\ifs\dns.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
<ClInclude Include="include\ifs\encoding.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
@@ -885,9 +888,6 @@
<ClInclude Include="src\gui\windows\WebView.h">
<Filter>Source Files\gui\windows</Filter>
</ClInclude>
<ClInclude Include="src\process\process_hrtime.h">
<Filter>Source Files\process</Filter>
</ClInclude>
<ClInclude Include="src\sandbox\loaders\loaders.h">
<Filter>Source Files\sandbox\loaders</Filter>
</ClInclude>
View
@@ -296,6 +296,7 @@
<ClInclude Include="include\ifs\coroutine.h" />
<ClInclude Include="include\ifs\crypto.h" />
<ClInclude Include="include\ifs\db.h" />
<ClInclude Include="include\ifs\dns.h" />
<ClInclude Include="include\ifs\encoding.h" />
<ClInclude Include="include\ifs\fs.h" />
<ClInclude Include="include\ifs\gd.h" />
@@ -349,7 +350,6 @@
<ClInclude Include="include\version.h" />
<ClInclude Include="src\db\sql\trans.h" />
<ClInclude Include="src\gui\windows\WebView.h" />
<ClInclude Include="src\process\process_hrtime.h" />
<ClInclude Include="src\sandbox\loaders\loaders.h" />
</ItemGroup>
<ItemGroup>
@@ -726,6 +726,9 @@
<ClInclude Include="include\ifs\db.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
<ClInclude Include="include\ifs\dns.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
<ClInclude Include="include\ifs\encoding.h">
<Filter>Header Files\ifs</Filter>
</ClInclude>
@@ -885,9 +888,6 @@
<ClInclude Include="src\gui\windows\WebView.h">
<Filter>Source Files\gui\windows</Filter>
</ClInclude>
<ClInclude Include="src\process\process_hrtime.h">
<Filter>Source Files\process</Filter>
</ClInclude>
<ClInclude Include="src\sandbox\loaders\loaders.h">
<Filter>Source Files\sandbox\loaders</Filter>
</ClInclude>
@@ -7,6 +7,7 @@
#include "object.h"
#include "version.h"
#include "exlib/include/hrtime.h"
#include "ifs/process.h"
#include "ifs/os.h"
#include "ifs/global.h"
@@ -17,7 +18,6 @@
#include "BufferedStream.h"
#include "SubProcess.h"
#include <vector>
#include "process_hrtime.h"
#include "options.h"
#include "v8_api.h"
@@ -163,7 +163,7 @@ result_t process_base::umask(int32_t& retVal)
result_t process_base::hrtime(v8::Local<v8::Array> diff, v8::Local<v8::Array>& retVal)
{
uint64_t t = _hrtime();
uint64_t t = exlib::_hrtime();
if (diff->Length() == 2) {
uint64_t seconds = diff->Get(0)->Uint32Value();

This file was deleted.

Oops, something went wrong.

0 comments on commit 4ded2bd

Please sign in to comment.