This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template<typename Signature> | |
class callback | |
{ | |
}; | |
template<typename R , typename ARG_TYPE0> | |
class callback<R( ARG_TYPE0)> | |
{ | |
public: | |
callback() {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import sys | |
class NamedStruct( struct.Struct ): | |
def __init__(self, *contents): | |
""" | |
Construct with ("Format", "Name"), tuples as arguments. | |
""" | |
self.names, format = zip(*contents) | |
#Flatten format into a string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
class C | |
{ | |
public: | |
C() | |
{ | |
printf("Created C\n"); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import threading | |
import gobject | |
gobject.threads_init() | |
import gst | |
import struct | |
import Queue | |
RGB_UNPACKER = struct.Struct("BBBB") | |
COLS = 16 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
struct Float | |
{ | |
Float( float val ) : m_val( val ) {} | |
operator float() { return m_val; } | |
float m_val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Do *not* directly modify this file. It was */ | |
/* generated by the Configuration Tool; any */ | |
/* changes risk being overwritten. */ | |
/* INPUT minimal.cdb */ | |
/* MODULE PARAMETERS */ | |
-u _FXN_F_nop | |
GBL_USERINITFXN = _FXN_F_nop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
****************************************************************************** | |
TMS320C6x Linker PC v6.1.19 | |
****************************************************************************** | |
>> Linked Tue Apr 05 10:32:09 2011 | |
OUTPUT FILE NAME: <minimal_test.out> | |
ENTRY POINT SYMBOL: "_c_int00" address: c00779e0 | |
MEMORY CONFIGURATION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
****************************************************************************** | |
TMS320C6x Linker Unix v6.1.19 | |
****************************************************************************** | |
>> Linked Tue Apr 5 10:46:29 2011 | |
OUTPUT FILE NAME: </home/stephen.english/ise/production/build/linux/Tms_None_Heed_Emit_Off_32bit/applications/embedded/minimal_test/minimal_test.out> | |
ENTRY POINT SYMBOL: "_c_int00" address: c00779e0 | |
MEMORY CONFIGURATION |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Do *not* directly modify this file. It was */ | |
/* generated by the Configuration Tool; any */ | |
/* changes risk being overwritten. */ | |
/* INPUT minimal.cdb */ | |
/* MODULE PARAMETERS */ | |
-u _FXN_F_nop | |
GBL_USERINITFXN = _FXN_F_nop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tmp $ cat spawnShortPipeSleep.sh | |
#!/bin/sh | |
sleep 5 | logger -t ZZZZZ & | |
Running this under bash: | |
/tmp $ bash --version | |
GNU bash, version 4.1.5(1)-release (x86_64-pc-linux-gnu) | |
Running this under bash returns immediately: |
OlderNewer