Rémi Bernon (@rbernon) commented about server/event.c:
return &event->kernel_object;
}
+static struct inproc_sync *event_get_inproc_sync( struct object *obj ) +{
- struct event *event = (struct event *)obj;
- if (!event->inproc_sync)
- {
enum inproc_sync_type type = event->manual_reset ? INPROC_SYNC_MANUAL_EVENT : INPROC_SYNC_AUTO_EVENT;
event->inproc_sync = create_inproc_event( type, event->signaled );
What about creating the inproc objects on creation instead? This would avoid all these lazy initializations.