• Home
  • Raw
  • Download

Lines Matching refs:g_thunks

13 static MojoSystemThunks g_thunks = {0};  variable
16 assert(g_thunks.GetTimeTicksNow); in MojoGetTimeTicksNow()
17 return g_thunks.GetTimeTicksNow(); in MojoGetTimeTicksNow()
21 assert(g_thunks.Close); in MojoClose()
22 return g_thunks.Close(handle); in MojoClose()
29 assert(g_thunks.Wait); in MojoWait()
30 return g_thunks.Wait(handle, signals, deadline, signals_state); in MojoWait()
39 assert(g_thunks.WaitMany); in MojoWaitMany()
40 return g_thunks.WaitMany(handles, signals, num_handles, deadline, in MojoWaitMany()
47 assert(g_thunks.CreateMessagePipe); in MojoCreateMessagePipe()
48 return g_thunks.CreateMessagePipe(options, message_pipe_handle0, in MojoCreateMessagePipe()
58 assert(g_thunks.WriteMessage); in MojoWriteMessage()
59 return g_thunks.WriteMessage(message_pipe_handle, bytes, num_bytes, handles, in MojoWriteMessage()
69 assert(g_thunks.ReadMessage); in MojoReadMessage()
70 return g_thunks.ReadMessage(message_pipe_handle, bytes, num_bytes, handles, in MojoReadMessage()
77 assert(g_thunks.CreateDataPipe); in MojoCreateDataPipe()
78 return g_thunks.CreateDataPipe(options, data_pipe_producer_handle, in MojoCreateDataPipe()
86 assert(g_thunks.WriteData); in MojoWriteData()
87 return g_thunks.WriteData(data_pipe_producer_handle, elements, num_elements, in MojoWriteData()
95 assert(g_thunks.BeginWriteData); in MojoBeginWriteData()
96 return g_thunks.BeginWriteData(data_pipe_producer_handle, buffer, in MojoBeginWriteData()
102 assert(g_thunks.EndWriteData); in MojoEndWriteData()
103 return g_thunks.EndWriteData(data_pipe_producer_handle, num_elements_written); in MojoEndWriteData()
110 assert(g_thunks.ReadData); in MojoReadData()
111 return g_thunks.ReadData(data_pipe_consumer_handle, elements, num_elements, in MojoReadData()
119 assert(g_thunks.BeginReadData); in MojoBeginReadData()
120 return g_thunks.BeginReadData(data_pipe_consumer_handle, buffer, in MojoBeginReadData()
126 assert(g_thunks.EndReadData); in MojoEndReadData()
127 return g_thunks.EndReadData(data_pipe_consumer_handle, num_elements_read); in MojoEndReadData()
134 assert(g_thunks.CreateSharedBuffer); in MojoCreateSharedBuffer()
135 return g_thunks.CreateSharedBuffer(options, num_bytes, shared_buffer_handle); in MojoCreateSharedBuffer()
142 assert(g_thunks.DuplicateBufferHandle); in MojoDuplicateBufferHandle()
143 return g_thunks.DuplicateBufferHandle(buffer_handle, options, in MojoDuplicateBufferHandle()
152 assert(g_thunks.MapBuffer); in MojoMapBuffer()
153 return g_thunks.MapBuffer(buffer_handle, offset, num_bytes, buffer, flags); in MojoMapBuffer()
157 assert(g_thunks.UnmapBuffer); in MojoUnmapBuffer()
158 return g_thunks.UnmapBuffer(buffer); in MojoUnmapBuffer()
162 assert(g_thunks.CreateWaitSet); in MojoCreateWaitSet()
163 return g_thunks.CreateWaitSet(wait_set); in MojoCreateWaitSet()
169 assert(g_thunks.AddHandle); in MojoAddHandle()
170 return g_thunks.AddHandle(wait_set, handle, signals); in MojoAddHandle()
174 assert(g_thunks.RemoveHandle); in MojoRemoveHandle()
175 return g_thunks.RemoveHandle(wait_set, handle); in MojoRemoveHandle()
183 assert(g_thunks.GetReadyHandles); in MojoGetReadyHandles()
184 return g_thunks.GetReadyHandles(wait_set, count, handles, results, in MojoGetReadyHandles()
192 assert(g_thunks.Watch); in MojoWatch()
193 return g_thunks.Watch(handle, signals, callback, context); in MojoWatch()
197 assert(g_thunks.CancelWatch); in MojoCancelWatch()
198 return g_thunks.CancelWatch(handle, context); in MojoCancelWatch()
202 assert(g_thunks.FuseMessagePipes); in MojoFuseMessagePipes()
203 return g_thunks.FuseMessagePipes(handle0, handle1); in MojoFuseMessagePipes()
209 assert(g_thunks.WriteMessageNew); in MojoWriteMessageNew()
210 return g_thunks.WriteMessageNew(message_pipe_handle, message, flags); in MojoWriteMessageNew()
219 assert(g_thunks.ReadMessageNew); in MojoReadMessageNew()
220 return g_thunks.ReadMessageNew(message_pipe_handle, message, num_bytes, in MojoReadMessageNew()
229 assert(g_thunks.AllocMessage); in MojoAllocMessage()
230 return g_thunks.AllocMessage( in MojoAllocMessage()
235 assert(g_thunks.FreeMessage); in MojoFreeMessage()
236 return g_thunks.FreeMessage(message); in MojoFreeMessage()
240 assert(g_thunks.GetMessageBuffer); in MojoGetMessageBuffer()
241 return g_thunks.GetMessageBuffer(message, buffer); in MojoGetMessageBuffer()
247 assert(g_thunks.WrapPlatformHandle); in MojoWrapPlatformHandle()
248 return g_thunks.WrapPlatformHandle(platform_handle, mojo_handle); in MojoWrapPlatformHandle()
254 assert(g_thunks.UnwrapPlatformHandle); in MojoUnwrapPlatformHandle()
255 return g_thunks.UnwrapPlatformHandle(mojo_handle, platform_handle); in MojoUnwrapPlatformHandle()
263 assert(g_thunks.WrapPlatformSharedBufferHandle); in MojoWrapPlatformSharedBufferHandle()
264 return g_thunks.WrapPlatformSharedBufferHandle(platform_handle, num_bytes, in MojoWrapPlatformSharedBufferHandle()
273 assert(g_thunks.UnwrapPlatformSharedBufferHandle); in MojoUnwrapPlatformSharedBufferHandle()
274 return g_thunks.UnwrapPlatformSharedBufferHandle(mojo_handle, platform_handle, in MojoUnwrapPlatformSharedBufferHandle()
281 assert(g_thunks.NotifyBadMessage); in MojoNotifyBadMessage()
282 return g_thunks.NotifyBadMessage(message, error, error_num_bytes); in MojoNotifyBadMessage()
286 assert(g_thunks.GetProperty); in MojoGetProperty()
287 return g_thunks.GetProperty(type, value); in MojoGetProperty()
293 if (system_thunks->size >= sizeof(g_thunks)) in MojoEmbedderSetSystemThunks()
294 g_thunks = *system_thunks; in MojoEmbedderSetSystemThunks()
295 return sizeof(g_thunks); in MojoEmbedderSetSystemThunks()