Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
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
RadioObservatory
LOFAR
Commits
10cf15aa
Commit
10cf15aa
authored
13 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
bug 1362: Cancellation::disable and friends made public because they're needed in Job.cc
parent
0b4b7a86
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
LCS/Thread/src/Cancellation.h
+4
-1
4 additions, 1 deletion
LCS/Thread/src/Cancellation.h
with
4 additions
and
1 deletion
LCS/Thread/src/Cancellation.h
+
4
−
1
View file @
10cf15aa
...
@@ -57,7 +57,9 @@ public:
...
@@ -57,7 +57,9 @@ public:
static
void
unregister_thread
(
pthread_t
id
);
static
void
unregister_thread
(
pthread_t
id
);
#endif
#endif
private:
// The set/disable/enable functions interfere with the reference counting
// of the routines above. Use with extreme caution.
// set (enable or disable) the cancellability of this thread.
// set (enable or disable) the cancellability of this thread.
// returns the previous value.
// returns the previous value.
static
bool
set
(
bool
enable
);
static
bool
set
(
bool
enable
);
...
@@ -65,6 +67,7 @@ private:
...
@@ -65,6 +67,7 @@ private:
static
bool
disable
()
{
return
set
(
false
);
}
static
bool
disable
()
{
return
set
(
false
);
}
static
bool
enable
()
{
return
set
(
true
);
}
static
bool
enable
()
{
return
set
(
true
);
}
private
:
#ifdef USE_THREADS
#ifdef USE_THREADS
struct
thread_state
{
struct
thread_state
{
unsigned
refcount
;
unsigned
refcount
;
...
...
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