Class SafeStmtPtr


  • public class SafeStmtPtr
    extends Object
    A class for safely wrapping calls to a native pointer to a statement, ensuring no other thread has access to the pointer while it is run
    • Constructor Detail

      • SafeStmtPtr

        public SafeStmtPtr​(DB db,
                           long ptr)
        Construct a new Safe Pointer Wrapper to ensure a pointer is properly handled
        Parameters:
        db - the database that made this pointer. Always locked before any safe run function is executed to avoid deadlocks
        ptr - the raw pointer