Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e1eb31da
authored
Apr 06, 2020
by
FritzFlorian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix clean out references to legacy builds in the code.
parent
3ae41f42
Pipeline
#1432
failed with stages
in 3 minutes 18 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
app/context_switch/main.cpp
+1
-1
lib/pls/src/internal/scheduling/scheduler.cpp
+3
-4
No files found.
app/context_switch/main.cpp
View file @
e1eb31da
...
...
@@ -170,7 +170,7 @@ int main() {
for
(
unsigned
int
i
=
0
;
i
<
STACK_SIZE
;
i
++
)
{
if
(
custom_stack_1
[
i
]
!=
MAGIC_NUMBER
)
{
printf
(
"
\n\n
Used stack size about %u bytes.
\n
"
,
(
STACK_SIZE
-
i
));
printf
(
"
\n\n
Used stack size about %
l
u bytes.
\n
"
,
(
STACK_SIZE
-
i
));
break
;
}
}
...
...
lib/pls/src/internal/scheduling/scheduler.cpp
View file @
e1eb31da
#include "pls/internal/scheduling/scheduler.h"
#include "context_switcher/context_switcher.h"
#include "pls/internal/base/thread.h"
#include "pls/internal/base/error_handling.h"
#include <thread>
namespace
pls
::
internal
::
scheduling
{
scheduler
::
scheduler
(
unsigned
int
num_threads
,
...
...
@@ -16,7 +16,6 @@ scheduler::scheduler(unsigned int num_threads,
reuse_thread
,
base
::
mmap_stack_allocator
{})
{}
scheduler
::~
scheduler
()
{
terminate
();
}
...
...
@@ -97,7 +96,7 @@ void scheduler::work_thread_work_section() {
}
else
{
failed_steals
++
;
if
(
failed_steals
>=
num_threads
)
{
base
::
this_thread
::
yield
();
std
::
this_thread
::
yield
();
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment