FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
daScript/src/misc/globals.cpp at master · WhyNot135/daScript · GitHub
WhyNot135
/
daScript
Public
forked from
GaijinEntertainment/daScript
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
daScript
/
src
/
misc
/
globals.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
24 lines (19 loc) · 1.19 KB
Breadcrumbs
daScript
/
src
/
misc
/
globals.cpp
Copy path
File metadata and controls
executable file
·
24 lines (19 loc) · 1.19 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//
Provides storage for daScript globals that upstream lives in src/hal/debug_break.cpp.
//
Dagor's jamfile doesn't build src/hal/ (games supply their own os_debug_break, crash
//
handlers, file access hooks), but the smart_ptr and JobStatus tracking globals are
//
referenced unconditionally after the `smart_ptr: remove debug macros, always-on
//
tracking` change -- put them here so every dagor executable gets them via daScript.lib.
#
include
"
daScript/misc/platform.h
"
#
include
"
daScript/misc/smart_ptr.h
"
#
include
"
daScript/misc/job_que.h
"
uint64_t
das::ptr_ref_count::ref_count_total =
0
;
uint64_t
das::ptr_ref_count::ref_count_track =
0
;
uint64_t
das::ptr_ref_count::ref_count_track_destructor =
0
;
das::ptr_ref_count * das::ptr_ref_count::ref_count_head =
nullptr
;
das::mutex das::ptr_ref_count::ref_count_mutex;
DAS_API
das::atomic<
uint64_t
> das::g_smart_ptr_total {
0
};
DAS_API
das::atomic<
uint64_t
> das::g_jobque_track_total {
0
};
DAS_API
das::atomic<
uint64_t
> das::g_jobque_track_id {
0
};
das::JobStatus * das::JobStatus::
sTrackHead
=
nullptr
;
das::mutex das::JobStatus::
sTrackMutex
;
das::atomic<
int32_t
> das::JobStatus::
sJoinSpin
{
0
};
Back
|
FazBrowse Home
|
New Git URL