mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-19 04:49:25 +08:00
Cygwin: posix timers: convert timer_tracker::fixup_after_fork to static method
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
c406bea20b
commit
92cbaa9f23
@ -284,8 +284,8 @@ timer_tracker::clean_and_unhook ()
|
||||
void
|
||||
timer_tracker::fixup_after_fork ()
|
||||
{
|
||||
hcancel = syncthread = NULL;
|
||||
for (timer_tracker *tt = this; tt->next != NULL; /* nothing */)
|
||||
ttstart.hcancel = ttstart.syncthread = NULL;
|
||||
for (timer_tracker *tt = &ttstart; tt->next != NULL; /* nothing */)
|
||||
{
|
||||
timer_tracker *deleteme = tt->next;
|
||||
tt->next = deleteme->next;
|
||||
@ -297,7 +297,7 @@ timer_tracker::fixup_after_fork ()
|
||||
void
|
||||
fixup_timers_after_fork ()
|
||||
{
|
||||
ttstart.fixup_after_fork ();
|
||||
timer_tracker::fixup_after_fork ();
|
||||
}
|
||||
|
||||
extern "C" int
|
||||
|
@ -35,7 +35,7 @@ class timer_tracker
|
||||
int clean_and_unhook ();
|
||||
|
||||
DWORD thread_func ();
|
||||
void fixup_after_fork ();
|
||||
static void fixup_after_fork ();
|
||||
};
|
||||
|
||||
#endif /* __TIMER_H__ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user