cairo-renderer: Update coding style and add comment explaining how to use the inter process communication to update the GUI with rendering status updates
This commit is contained in:
parent
1ca04aaa71
commit
2d389342fd
@ -275,12 +275,20 @@ static int cairo_renderer_render_cell_to_vector_file(GdsOutputRenderer *renderer
|
|||||||
goto ret_parent;
|
goto ret_parent;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Close stdin and (stdout and stderr may live on) */
|
/* We are now in a separate process just for rendering the output image.
|
||||||
|
* You may print a log message to the activity bar of the gui by writing a line
|
||||||
|
* teminated with '\n' to comm_pipe[1]. This will be handled by the parent process.
|
||||||
|
* Directly calling the update function
|
||||||
|
* gds_output_renderer_update_async_progress()
|
||||||
|
* does not have any effect because this is a separate process.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Close stdin and (stdout and stderr may live on)
|
||||||
|
*/
|
||||||
close(0);
|
close(0);
|
||||||
//close(1);
|
|
||||||
close(comm_pipe[0]);
|
close(comm_pipe[0]);
|
||||||
|
|
||||||
|
|
||||||
layers = (struct cairo_layer *)calloc(MAX_LAYERS, sizeof(struct cairo_layer));
|
layers = (struct cairo_layer *)calloc(MAX_LAYERS, sizeof(struct cairo_layer));
|
||||||
|
|
||||||
/* Clear layers */
|
/* Clear layers */
|
||||||
|
Loading…
Reference in New Issue
Block a user