search for: callback1

Displaying 10 results from an estimated 10 matches for "callback1".

Did you mean: callback
2013 Nov 01
4
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...I registerCustomCallback(). Depending upon the flags set during lli invocation, the call goes to JIT or MCJIT. 3. In the user program, a call to PerformCustomCallback() with the name and arguments will execute the registered callback. Example: Suppose, I want to register a function named Callback1 which takes two integers as its parameters. In lli.cpp in main(), define the function Callback1 and register it as follows: EE->registerCustomCallback("Callback1", (reinterpret_cast<void*(*)()>(&Callback1))); The user programs have to include the header file of the dummy...
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...e flags > set during lli invocation, the call goes to JIT or MCJIT. > > 3. In the user program, a call to PerformCustomCallback() with the > name and arguments will execute the registered callback. > > > > Example: > > Suppose, I want to register a function named Callback1 which takes two > integers as its parameters. > > In lli.cpp in main(), define the function Callback1 and register it as > follows: > > EE->registerCustomCallback("Callback1", > (reinterpret_cast<void*(*)()>(&Callback1))); > > > > The user pro...
2009 Jan 08
1
Callbacks seems to get GCed.
...dded R interpreter. But somehow my registered closures seem to get collected by the GC, even though I have protected them. I have reducted my code to the following sample. Sorry if it is a little verbose. The first couple of call of calls still work, but at some point one of the callbacks (callback1 in my case) changes its type. Regards and thanks for any help, Bernd #include <stdio.h> #include <stdlib.h> #define R_INTERFACE_PTRS 1 #include <Rversion.h> #include <Rembedded.h> #include <Rinternals.h> #include <Rdefines.h> #include <R_ext/Parse.h>...
2008 Nov 11
7
music on hold
...ARNING[1781]: format_wav.c:156 check_header: Unexpected freqency 11025 [2008-11-11 14:32:41] WARNING[1781]: file.c:322 fn_wrapper: Unable to open format wav [2008-11-11 14:32:41] WARNING[1781]: res_musiconhold.c:259 ast_moh_files_next: Unable to open file '/data/TOMSKYPEIVR/var/lib/asterisk/moh/callback1': No such file or directory -- Stopped music on hold on Local/s at skype-web-callback-dial-263to263-1775,1 how can i solve the issue? thanks 2008-11-11 ?? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk...
2013 Nov 01
0
[LLVMdev] [Proposal] Adding callback mechanism to Execution Engines
...e API registerCustomCallback(). Depending upon the flags set during lli invocation, the call goes to JIT or MCJIT. 3. In the user program, a call to PerformCustomCallback() with the name and arguments will execute the registered callback. Example: Suppose, I want to register a function named Callback1 which takes two integers as its parameters. In lli.cpp in main(), define the function Callback1 and register it as follows: EE->registerCustomCallback("Callback1", (reinterpret_cast<void*(*)()>(&Callback1))); The user programs have to include the header file of the dummy lib...
2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
...then inlined. If UseCallback is too big to inline and uses the callback parameter inside a loop, this transform is potentially valuable, particularly if UseCallback is called multiple times with the same callback parameter. Interestingly, when I had foo call UseCallback multiple times with *only* callback1, it yanked the function pointer parameter out of UseCallback and turned the thing into a direct call. (I'm guessing dead argument elimination came into play here) But as soon as I added a call to UseCallback with callback2 to the mix, it went back to not making any indirect call elimination....
2010 Jun 04
0
[LLVMdev] Is there a "callback optimization"?
Hi Kenneth, > By that I mean an optimization pass (or a combination of them) that turns: ... > With that transform in place, lots of inlining becomes possible, and > direct function calls replace indirect function calls if inlining > isn't appropriate. If this transform is combined with argpromotion > and scalarrepl, it can be used for devirtualization of C++ virtual >
2010 Jun 04
0
[LLVMdev] Is there a "callback optimization"?
...lback is too big to inline and uses the callback parameter > inside a loop, this transform is potentially valuable, particularly if > UseCallback is called multiple times with the same callback parameter. > > Interestingly, when I had foo call UseCallback multiple times with > *only* callback1, it yanked the function pointer parameter out of > UseCallback and turned the thing into a direct call.  (I'm guessing > dead argument elimination came into play here)  But as soon as I added > a call to UseCallback with callback2 to the mix, it went back to not > making any indirec...
2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
By that I mean an optimization pass (or a combination of them) that turns: void useCallback(void (*callbackfn)()) { // Do something callbackfn(); // Do something else } void myCallback() { // Respond one way } void myOtherCallback() { // Respond another way } void foo() { useCallback(myCallback); useCallback(myOtherCallback); } into: // Keep the original; it'll get removed // by other
2008 Feb 04
8
AGI: Not getting answers from get_data in a call-file call
I have the following situation: I drop a call-file into the Asterisk spool directory and I get called back. That all works. And I have this script: #!/usr/bin/perl -w use Asterisk::AGI; my $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); $AGI->answer(); my $i; $i = $AGI->channel_status(); $AGI->say_digits($i); $i =