Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pike
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pikelang
pike
Commits
53a32aac
Commit
53a32aac
authored
24 years ago
by
Francesco Chemolli
Browse files
Options
Downloads
Patches
Plain Diff
Added method to determine whether we are in async mode, mostly useful for
library modules. Rev: lib/master.pike.in:1.121
parent
b6a2f4a8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/master.pike.in
+9
-1
9 additions, 1 deletion
lib/master.pike.in
with
9 additions
and
1 deletion
lib/master.pike.in
+
9
−
1
View file @
53a32aac
/* -*- Pike -*-
*
* $Id: master.pike.in,v 1.12
0
2000/0
5/24 01:21:33 hubb
e Exp $
* $Id: master.pike.in,v 1.12
1
2000/0
6/04 18:23:10 kinki
e Exp $
*
* Master-file for Pike.
*
...
...
@@ -910,6 +910,13 @@ mixed resolv(string identifier, string|void current_file)
string _pike_file_name;
string _master_file_name;
//flag. Gets set to 1 if we're in async-mode (script->main() returned <0)
private int _async=0;
int asyncp() {
return _async;
}
/* This function is called when all the driver is done with all setup
* of modules, efuns, tables etc. etc. and is ready to start executing
* _real_ programs. It receives the arguments not meant for the driver
...
...
@@ -1153,6 +1160,7 @@ void _main(array(string) orig_argv, array(string) env)
if(trace) predef::trace(trace);
i=script->main(sizeof(argv),argv,env);
if(i >=0) exit(i);
_async=1;
}
#if constant(thread_local)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment