Actual source code: dsflush.c

petsc-3.3-p7 2013-05-11
  2: /*
  3:        Provides the calling sequences for all the basic PetscDraw routines.
  4: */
  5: #include <../src/sys/draw/drawimpl.h>  /*I "petscdraw.h" I*/

  9: /*@
 10:    PetscDrawSynchronizedFlush - Flushes graphical output. This waits until all 
 11:    processors have arrived and flushed, then does a global flush.
 12:    This is usually done to change the frame for double buffered graphics.

 14:    Collective on PetscDraw

 16:    Input Parameters:
 17: .  draw - the drawing context

 19:    Level: beginner

 21:    Concepts: flushing^graphics

 23: .seealso: PetscDrawFlush()

 25: @*/
 26: PetscErrorCode  PetscDrawSynchronizedFlush(PetscDraw draw)
 27: {
 31:   if (draw->ops->synchronizedflush) {
 32:     (*draw->ops->synchronizedflush)(draw);
 33:   }
 34:   return(0);
 35: }