Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
4d5e97ad
Commit
4d5e97ad
authored
Jul 30, 2019
by
Luca Boccassi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: formatting errors introduced by #3601
Solution: fix them with make clang-format-diff
parent
9dcbdd1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
thread.cpp
src/thread.cpp
+14
-10
No files found.
src/thread.cpp
View file @
4d5e97ad
...
...
@@ -124,15 +124,17 @@ typedef struct _MY_EXCEPTION_REGISTRATION_RECORD
}
MY_EXCEPTION_REGISTRATION_RECORD
;
static
EXCEPTION_DISPOSITION
NTAPI
continue_execution
(
EXCEPTION_RECORD
*
rec
,
void
*
frame
,
CONTEXT
*
ctx
,
void
*
disp
)
void
*
frame
,
CONTEXT
*
ctx
,
void
*
disp
)
{
return
ExceptionContinueExecution
;
return
ExceptionContinueExecution
;
}
void
zmq
::
thread_t
::
applyThreadName
()
// to be called in secondary thread context
{
if
(
!
_name
[
0
]
||
!
IsDebuggerPresent
())
if
(
!
_name
[
0
]
||
!
IsDebuggerPresent
())
return
;
thread_info_t
thread_info
;
...
...
@@ -141,19 +143,21 @@ void zmq::thread_t::
thread_info
.
_thread_id
=
-
1
;
thread_info
.
_flags
=
0
;
NT_TIB
*
tib
=
((
NT_TIB
*
)
NtCurrentTeb
());
NT_TIB
*
tib
=
((
NT_TIB
*
)
NtCurrentTeb
());
MY_EXCEPTION_REGISTRATION_RECORD
rec
;
rec
.
Next
=
(
MY_EXCEPTION_REGISTRATION_RECORD
*
)
tib
->
ExceptionList
;
rec
.
Next
=
(
MY_EXCEPTION_REGISTRATION_RECORD
*
)
tib
->
ExceptionList
;
rec
.
Handler
=
continue_execution
;
// push our handler, raise, and finally pop our handler
tib
->
ExceptionList
=
(
_EXCEPTION_REGISTRATION_RECORD
*
)
&
rec
;
tib
->
ExceptionList
=
(
_EXCEPTION_REGISTRATION_RECORD
*
)
&
rec
;
DWORD
MS_VC_EXCEPTION
=
0x406D1388
;
RaiseException
(
MS_VC_EXCEPTION
,
0
,
sizeof
(
thread_info
)
/
sizeof
(
ULONG_PTR
),
(
ULONG_PTR
*
)
&
thread_info
);
tib
->
ExceptionList
=
(
_EXCEPTION_REGISTRATION_RECORD
*
)(((
MY_EXCEPTION_REGISTRATION_RECORD
*
)
tib
->
ExceptionList
)
->
Next
);
RaiseException
(
MS_VC_EXCEPTION
,
0
,
sizeof
(
thread_info
)
/
sizeof
(
ULONG_PTR
),
(
ULONG_PTR
*
)
&
thread_info
);
tib
->
ExceptionList
=
(
_EXCEPTION_REGISTRATION_RECORD
*
)
(((
MY_EXCEPTION_REGISTRATION_RECORD
*
)
tib
->
ExceptionList
)
->
Next
);
}
#elif defined ZMQ_HAVE_VXWORKS
...
...
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