Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cellframe-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
cellframe
cellframe-sdk
Commits
9cc580d7
Commit
9cc580d7
authored
2 years ago
by
alexey.stratulat
Browse files
Options
Downloads
Patches
Plain Diff
Moved developments from the master from July 18th to the file dap_events.c
parent
7826125c
No related branches found
Branches containing commit
No related tags found
2 merge requests
!897
hotfix-6925
,
!803
Transferring changes of many modules to develop.
Pipeline
#17580
failed with stage
in 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dap-sdk/io/dap_events.c
+10
-6
10 additions, 6 deletions
dap-sdk/io/dap_events.c
with
10 additions
and
6 deletions
dap-sdk/io/dap_events.c
+
10
−
6
View file @
9cc580d7
...
@@ -177,7 +177,11 @@ void dap_cpu_assign_thread_on(uint32_t a_cpu_id)
...
@@ -177,7 +177,11 @@ void dap_cpu_assign_thread_on(uint32_t a_cpu_id)
#else
#else
l_retcode
=
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
&
mask
);
l_retcode
=
pthread_setaffinity_np
(
pthread_self
(),
sizeof
(
cpu_set_t
),
&
mask
);
#endif
#endif
#ifdef DAP_OS_DARWIN
if
(
l_retcode
!=
0
&&
l_retcode
!=
EPFNOSUPPORT
)
#else
if
(
l_retcode
!=
0
)
if
(
l_retcode
!=
0
)
#endif
{
{
char
l_errbuf
[
128
]
=
{
0
};
char
l_errbuf
[
128
]
=
{
0
};
switch
(
l_retcode
)
{
switch
(
l_retcode
)
{
...
@@ -362,15 +366,15 @@ void dap_events_stop_all( )
...
@@ -362,15 +366,15 @@ void dap_events_stop_all( )
* @brief dap_worker_get_index_min
* @brief dap_worker_get_index_min
* @return
* @return
*/
*/
uint32_t
dap_events_thread_get_index_min
(
)
uint32_t
dap_events_worker_get_index_min
()
{
{
uint32_t
min
=
0
;
uint32_t
min
=
0
;
if
(
!
s_workers_init
)
if
(
!
s_workers_init
)
{
log_it
(
L_CRITICAL
,
"Event socket reactor has not been fired, use dap_events_init() first"
);
log_it
(
L_CRITICAL
,
"Event socket reactor has not been fired, use dap_events_init() first"
);
return
-
1
;
for
(
uint32_t
i
=
1
;
i
<
s_threads_count
;
i
++
)
{
}
if
(
s_workers
[
min
]
->
context
->
event_sockets_count
>
s_workers
[
i
]
->
context
->
event_sockets_count
)
for
(
uint32_t
i
=
1
;
i
<
s_threads_count
;
i
++
)
{
if
(
s_workers
[
min
]
->
context
->
event_sockets_count
>
s_workers
[
i
]
->
context
->
event_sockets_count
)
min
=
i
;
min
=
i
;
}
}
...
...
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