---
title: timeout
framework: kernel
role: pseudoSymbol
path: kernel/iotimereventsource/1809663-timeout
---

# timeout

Function that routes the call from the OS' timeout mechanism into a work-loop context.

## Declaration

```occ
static void timeout(
 void *self); 
```

## Parameters

- `self`: This argument will be cast to an IOTimerEventSource.

## Overview

Overview timeout will normally not be called nor overridden by a subclass. If the event source is enabled then close the work-loop's gate and call the action routine.

## See Also

### Miscellaneous

- [cancelTimeout](kernel/iotimereventsource/1809565-canceltimeout.md)
- [disable](kernel/iotimereventsource/1809571-disable.md)
- [enable](kernel/iotimereventsource/1809577-enable.md)
- [free](kernel/iotimereventsource/1809588-free.md)
- [init](kernel/iotimereventsource/1809597-init.md)
- [setTimeout(AbsoluteTime)](kernel/iotimereventsource/1809607-settimeout.md)
- [setTimeout(UInt32, UInt32)](kernel/iotimereventsource/1809617-settimeout.md)
- [setTimeoutFunc](kernel/iotimereventsource/1809624-settimeoutfunc.md)
- [setTimeoutMS](kernel/iotimereventsource/1809629-settimeoutms.md)
- [setTimeoutTicks](kernel/iotimereventsource/1809639-settimeoutticks.md)
- [setTimeoutUS](kernel/iotimereventsource/1809649-settimeoutus.md)
- [timerEventSource](kernel/iotimereventsource/1809672-timereventsource.md)
- [wakeAtTime(AbsoluteTime)](kernel/iotimereventsource/1809684-wakeattime.md)
- [wakeAtTime(UInt32, UInt32)](kernel/iotimereventsource/1809694-wakeattime.md)
- [wakeAtTimeMS](kernel/iotimereventsource/1809708-wakeattimems.md)
- [wakeAtTimeTicks](kernel/iotimereventsource/1809720-wakeattimeticks.md)
- [wakeAtTimeUS](kernel/iotimereventsource/1809737-wakeattimeus.md)
