1: /*$Id: dsflush.c,v 1.29 2001/03/23 23:20:08 balay Exp $*/
2: /*
3: Provides the calling sequences for all the basic PetscDraw routines.
4: */
5: #include src/sys/src/draw/drawimpl.h
7: /*@
8: PetscDrawSynchronizedFlush - Flushes graphical output. This waits until all
9: processors have arrived and flushed, then does a global flush.
10: This is usually done to change the frame for double buffered graphics.
12: Collective on PetscDraw
14: Input Parameters:
15: . draw - the drawing context
17: Level: beginner
19: Concepts: flushing^graphics
21: .seealso: PetscDrawFlush()
23: @*/
24: int PetscDrawSynchronizedFlush(PetscDraw draw)
25: {
29: if (draw->ops->synchronizedflush) {
30: (*draw->ops->synchronizedflush)(draw);
31: }
32: return(0);
33: }