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?
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
I\'ve using the QT API in C++, but I imagine answers can come effectively from people without any prior experience with QT.
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
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
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
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
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:
I am writing a compiler for a toy OO language. I am writing it in C, using Flex and Bison. Consider the following syntax:
I call some C++ functions inside a signal hand开发者_开发知识库ler and my program is terminated by segmentation fault.