Home » U++ Library support » U++ MT-multithreading and servers » Linux MT problems with time functions
Linux MT problems with time functions [message #25360] |
Thu, 18 February 2010 18:48 |
zsolt
Messages: 696 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
I'm planning introducing threading in one of my projects, but I found a problem with unix time handling functions.
localtime() and gmtime() functions are using a library internal tm struct, so they are not thread-safe, but they are used in U++ core.
It would be a good idea to change them to their _r variant soon, I think.
I can do the fixes, but it is not very urgent for me, as I'm not working on this project yet, but I think somebody else can fix this bugs, if he/she feels it very important.
|
|
|
Re: Linux MT problems with time functions [message #25386 is a reply to message #25360] |
Sat, 20 February 2010 17:40 |
|
mirek
Messages: 13975 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Thu, 18 February 2010 12:48 | I'm planning introducing threading in one of my projects, but I found a problem with unix time handling functions.
localtime() and gmtime() functions are using a library internal tm struct, so they are not thread-safe, but they are used in U++ core.
It would be a good idea to change them to their _r variant soon, I think.
I can do the fixes, but it is not very urgent for me, as I'm not working on this project yet, but I think somebody else can fix this bugs, if he/she feels it very important.
|
Done.
Mirek
|
|
|
|
Goto Forum:
Current Time: Fri Apr 19 06:12:31 CEST 2024
Total time taken to generate the page: 0.02718 seconds
|