Permalink
Browse files

core, refactor: add options.h to define extern options variable.

  • Loading branch information...
xicilion committed Oct 30, 2017
1 parent c4be76a commit 600764b2da93874dd5f156cf67e09c92109b8137
View
@@ -351,6 +351,7 @@
<ClInclude Include="include\mysql.h" />
<ClInclude Include="include\obj_ptr.h" />
<ClInclude Include="include\object.h" />
<ClInclude Include="include\options.h" />
<ClInclude Include="include\parse.h" />
<ClInclude Include="include\path.h" />
<ClInclude Include="include\qstring.h" />
@@ -894,6 +894,9 @@
<ClInclude Include="include\object.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\options.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\parse.h">
<Filter>Header Files</Filter>
</ClInclude>
View
@@ -351,6 +351,7 @@
<ClInclude Include="include\mysql.h" />
<ClInclude Include="include\obj_ptr.h" />
<ClInclude Include="include\object.h" />
<ClInclude Include="include\options.h" />
<ClInclude Include="include\parse.h" />
<ClInclude Include="include\path.h" />
<ClInclude Include="include\qstring.h" />
@@ -894,6 +894,9 @@
<ClInclude Include="include\object.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\options.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="include\parse.h">
<Filter>Header Files</Filter>
</ClInclude>
View
@@ -0,0 +1,23 @@
/*
* options.h
*
* Created on: Oct 30, 2017
* Author: lion
*/
#ifndef _OPTIONS_H_
#define _OPTIONS_H_
#include "utils.h"
namespace fibjs {
extern int32_t stack_size;
extern bool g_prof;
extern int32_t g_prof_interval;
extern bool g_cov;
}
#endif
@@ -15,12 +15,11 @@
#include "ifs/coroutine.h"
#include "ifs/profiler.h"
#include "v8_api.h"
#include "options.h"
namespace fibjs {
static int32_t s_tls_rt;
extern bool g_prof;
extern int32_t g_prof_interval;
void init_rt()
{
@@ -58,7 +57,6 @@ class ShellArrayBufferAllocator : public v8::ArrayBuffer::Allocator {
exlib::LockedList<Isolate> s_isolates;
exlib::atomic s_iso_id;
extern int32_t stack_size;
Isolate::rt_base::rt_base(Isolate* cur)
: m_isolate((cur ? cur : Isolate::current()))
@@ -11,6 +11,7 @@
#include "console.h"
#include "path.h"
#include "Fiber.h"
#include "options.h"
namespace fibjs {
@@ -11,11 +11,10 @@
#include "ifs/os.h"
#include "ifs/process.h"
#include "v8_api.h"
#include "options.h"
namespace fibjs {
extern int32_t stack_size;
#define MAX_IDLE 256
int32_t g_spareFibers;

0 comments on commit 600764b

Please sign in to comment.