|
|
|
|
|
by teddyh
2293 days ago
|
|
Many calling conventions apparently use a method for returning structs which is inherently non-thread-safe. Also from that link: > 32-bit cdecl calling convention > For return values of structure or class type, there is wide incompatibility amongst compilers. Some make the return thread-safe, by breaking compatibility with the 16-bit cdecl calling convention. Some retain compatibility, at the expense of their 32-bit cdecl calling convention not being thread-safe. The ones that break compatibility don't all agree with one another on how to do so. |
|