From: Sergei N. <vo...@ra...> - 2015-01-13 16:44:43
|
> I do not know anything about the GTK multithreading capabilities, so what I would like to know is, where are the threads introduced, is that in g_timeout()? > But I would think that it initialises a single extra thread. Plplot itself is not threadsafe, that is, you should not use the functions from different threads > at the same time, but I would imagine that global variables (as maintained by the Plplot library) are accessible in any thread. Hence, there should be no problem. The call simply creates a new thread that executes a specified function every N seconds. In my case it is 15. All other variables and structures declared globally in my code are accessable from inside. There seem to be nothing unusual about it. > What happens if you use the PSC device? That produces a file on disk. It seems I did sometging wrong... But it produced a file with nothing in it. [serge@yaro c]$ ./ext Enter graphics output file name: oo *** PLPLOT ERROR, ABORTING OPERATION *** plvpor: Invalid limits, aborting operation *** PLPLOT ERROR, ABORTING OPERATION *** plwind: Please set up viewport first, aborting operation *** PLPLOT ERROR, ABORTING OPERATION *** plbox: Please set up window first, aborting operation |