reentrancy
Is the following code reentrant and thread-safe?
Is the following code is reentrant? Is it thread-safe, if this.NextToExecuteIndex is declared private int Ne开发者_开发问答xtToExecuteIndex = 0; and not computed anywhere else?[详细]
2023-04-10 17:24 分类:问答Are there any cpp functions or objects (excluding inherited from c) that are not thread safe even when each thread operates on its own data?
Sorry for the long title, but I think it explains well what I\'m interested in.For example C function strtok is not thread safe in worst possible way :) , it uses a global state. So even if it is call[详细]
2023-04-05 16:41 分类:问答A non-reentrant function in an API being used in a multi-threaded program
I\'ve using the QT API in C++, but I imagine answers can come effectively from people without any prior experience with QT.[详细]
2023-04-01 14:20 分类:问答Are fprintf and fscanf reentrant when using different file handles
Can I have 2 threads in the same process calling fprintf or fscanf at the same time? One stream is wri开发者_运维问答tten to by the first thread and is read by the second thread and the otherstream i[详细]
2023-03-16 13:49 分类:问答Is there a way to flag the use of non-reentrant C library calls?
I\'m working on a project that\'s heavily multi-threaded, and was wondering if there\'s a way to have the compiler flag the use of non-reentrant calls to the C library (e.g. strtok intsead of strtok_r[详细]
2023-03-14 21:23 分类:问答Is WCF MessageBuffer.CreateMessage thread safe?
http://msdn.microsoft.com/en-us/library/system.servicemodel.channels.messagebuffer(v=vs.85).aspx is somewhat vague when it says that \"Any public static (Shared in Visual Basic) members of this type a[详细]
2023-03-09 18:14 分类:问答Is it possible for windows event and Windows timer event to execute re-entrantly?
I have \"Update\" method which is executes in event handler (button click), and in Windows forms Timer callback. Is it possible for two \"Update\" (re-entrancy) to be开发者_JS百科 executing at the sam[详细]
2023-03-05 16:53 分类:问答Is puts reentrant?
Is int puts(const char*); re-entrant? Can I saf开发者_运维百科ely put it into a signal handler?Here is a table with all functions considered safe for signal handling:[详细]
2023-03-04 02:51 分类:问答Flex/Bison Multi-pass Class Parsing
I am writing a compiler for a toy OO language. I am writing it in C, using Flex and Bison. Consider the following syntax:[详细]
2023-02-24 06:14 分类:问答Is the memcpy() function reentrant?
I call some C++ functions inside a signal hand开发者_开发知识库ler and my program is terminated by segmentation fault.[详细]
2023-02-17 14:09 分类:问答