MCPcopy Create free account
hub / github.com/csound/csound / killInstance_enqueue

Function killInstance_enqueue

Top/threadsafe.c:327–338  ·  view source on GitHub ↗

this is to be called from csoundKillInstanceInternal() in insert.c */

Source from the content-addressed store, hash-verified

325 csoundKillInstanceInternal() in insert.c
326*/
327void killInstance_enqueue(CSOUND *csound, MYFLT instr, int insno,
328 INSDS *ip, int mode,
329 int allow_release) {
330 const int argsize = ARG_ALIGN*5;
331 char args[ARG_ALIGN*5];
332 memcpy(args, &instr, sizeof(int));
333 memcpy(args+ARG_ALIGN, &insno, sizeof(int));
334 memcpy(args+ARG_ALIGN*2, &ip, sizeof(INSDS *));
335 memcpy(args+ARG_ALIGN*3, &mode, sizeof(int));
336 memcpy(args+ARG_ALIGN*4, &allow_release, sizeof(int));
337 message_enqueue(csound,KILL_INSTANCE,args,argsize);
338}
339
340/* this is to be called from
341 csoundCompileTreeInternal() in csound_orc_compile.c

Callers 1

Calls 1

message_enqueueFunction · 0.85

Tested by

no test coverage detected