diff options
| author | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff.email> | 2024-03-03 19:11:32 +0100 | 
| commit | 00893e79fc62966067af1a106567db96bd170338 (patch) | |
| tree | 52b35cd0b42ca28e62a2ffbecade2e13dd8332cf /tests/glthread/thread.c | |
| parent | 26112352a774737e1ce5580c93654a26c1e82b39 (diff) | |
New upstream version 1.2upstream/1.2
Diffstat (limited to 'tests/glthread/thread.c')
| -rw-r--r-- | tests/glthread/thread.c | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/tests/glthread/thread.c b/tests/glthread/thread.c index 0b923c04..9c8c3035 100644 --- a/tests/glthread/thread.c +++ b/tests/glthread/thread.c @@ -1,5 +1,5 @@  /* Creating and controlling threads. -   Copyright (C) 2005-2022 Free Software Foundation, Inc. +   Copyright (C) 2005-2024 Free Software Foundation, Inc.     This file is free software: you can redistribute it and/or modify     it under the terms of the GNU Lesser General Public License as @@ -139,9 +139,11 @@ gl_thread_self (void)              /* Memory allocation failed.  There is not much we can do.  Have to                 busy-loop, waiting for the availability of memory.  */              { -              struct timespec ts; -              ts.tv_sec = 1; -              ts.tv_nsec = 0; +              struct timespec ts = +                { +                  .tv_sec = 1, +                  .tv_nsec = 0 +                };                thrd_sleep (&ts, NULL);              }            } | 
