Actual source code: garbagecollector.h

      1: #pragma once

      3: #include <petsc/private/hashmapobj.h>
      4: #include <petscsys.h>

      6: typedef union _PetscGarbage
      7: {
      8:   PetscHMapObj map;
      9:   void        *ptr;
     10: } PetscGarbage;

     12: PETSC_EXTERN PetscErrorCode PetscObjectDelayedDestroy(PetscObject *);
     13: PETSC_EXTERN void           PetscGarbageKeySortedIntersect(void *, void *, PetscMPIInt *, MPI_Datatype *);
     14: PETSC_EXTERN PetscErrorCode PetscGarbageCleanup(MPI_Comm);
     15: PETSC_EXTERN PetscErrorCode PetscGarbageView(MPI_Comm, PetscViewer);

     17: PETSC_EXTERN PetscErrorCode GarbageKeyAllReduceIntersect_Private(MPI_Comm, PetscInt64 *, PetscInt *);