# mco_end_wait_event
RT

> Clear the current wait event type for profiling and diagnostics.

### Prototype

        void mco_end_wait_event(
            /*IN*/ mco_db_h con
        );

### Arguments

`con`
Database connection handle.

### Description

> This function resets the wait event state of the specified database connection to `MCO_WAIT_EVENT_NONE`. It is used internally by the eXtremeDB runtime to signal the end of a blocking operation (e.g., after acquiring a lock, completing I/O, or finishing network communication).

> It is typically called in pair with `mco_begin_wait_event()`:

> - `mco_begin_wait_event(con, event)` — marks the start of a wait,
> - `mco_end_wait_event(con)` — marks its completion.

> Note: This is an internal diagnostic function. Applications should not call it directly unless implementing custom profiling or debugging extensions.

### Return Value

None
This function does not return a value.

### Files

Header file:
mco.h
Source file:
mcoconn.c
Library:
libmcolib.a