[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libunwind] Re: Switching threads
From: |
David Mosberger |
Subject: |
[libunwind] Re: Switching threads |
Date: |
Tue, 31 Aug 2004 02:40:57 -0700 |
>>>>> On Tue, 31 Aug 2004 10:28:02 +0100, "Thomas Hallgren" <address@hidden>
>>>>> said:
Thomas> Once a cursor is initialized (using unw_getcontext and
Thomas> unw_init_local) and the thread where this happened is
Thomas> suspended, are there any cursor related functions other than
Thomas> unw_resume that cannot be called from another thread? In
Thomas> particular, is it OK to let another thread do unw_step,
Thomas> unw_get_reg, unw_set_reg, on such a cursor?
Definitely.
As long as the target-thread is stopped, it is OK to unwind from
another thread.
--david