Skip to content

Instantly share code, notes, and snippets.

View wayt's full-sized avatar

Maxime Ginters wayt

View GitHub Profile
Process: rtype-client-bin [10520]
Path: /Users/USER/*/rtype-client-bin
Identifier: rtype-client-bin
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [10511]
Responsible: iTerm [9618]
User ID: 501
Date/Time: 2013-11-19 11:32:00.900 +0100
#ifndef FUNCTIONSIGNATURE_H_
# define FUNCTIONSIGNATURE_H_
#include <cstdlib>
template<class T>
class FunctionSignature
{
public:
class type
#ifndef FUNCTIONSIGNATURE_H_
# define FUNCTIONSIGNATURE_H_
#include <cstdlib>
template<class Retour, class T>
class FunctionSignature
{
public:
class type<Retour<T> >
template<class Retour, class T>
struct FunctionSignature<Retour(T)>
{
typedef Retour (*type)(T);
};
#ifndef FUNCTION_H_
# define FUNCTION_H_
#include <cstdlib>
template<class T>
class Function
{
};
#ifndef FUNCTION_H_
# define FUNCTION_H_
#include <cstdlib>
template<class T>
class Function
{
public:
Function() : _obj(NULL), _func(NULL) {}
template<class Retour, class T, class I>
class Function<Retour(T, I)>
{
public:
Function() : _inner(NULL), _func(NULL) {}
virtual ~Function() { delete _inner; }
template<class U>
Function(U* obj) : _inner(NULL), _func(NULL) { _inner = new InnerClass<U>(obj); }
Function(Retour(*func)(T, I)) : _inner(NULL), _func(func) {}
class Thread
{
public:
Thread(std::function<void(void)> &func) : _thread(func) {}
template<class T>
Thread(T& obj) : _thread(boost::bind(&T::run, &obj)) {}
void join() { _thread.join(); }
static void Sleep(unsigned int ms) { boost::this_thread::sleep(boost::posix_time::milliseconds(ms)); }
src/shared/libshared.a(TcpSocket.cpp.o):
0000000000005a48 s EH_frame0
0000000000005a98 s EH_frame1
0000000000003ff4 s GCC_except_table0
00000000000041f8 s GCC_except_table11
0000000000004210 s GCC_except_table12
0000000000004228 s GCC_except_table15
0000000000004254 s GCC_except_table18
0000000000004294 s GCC_except_table20
#! /bin/sh
# Script to bring a network (tap) device for qemu up.
# The idea is to add the tap device to the same bridge
# as we have default routing to.
# in order to be able to find brctl
PATH=$PATH:/sbin:/usr/sbin
ip=$(which ip)
if [ -n "$ip" ]; then