What's wrong with my CRC?

Check out the (non) CRC implementation below. What's wrong with it?

I'm working on a connectivity library for IoT devices. A serious part of every communication protocol is the data integrity check. You send a collection of bytes to another machine and that machine has to know that there were no errors on the way. IP for example already has a good integrity check. The problem is that a TCP socket is basically a stream. This means that you don't really know when a buffer begins and ends. By using an integrity check we can verify that we are looking at full buffers.

TBB doesn't enable c++11 features with Clang on Linux

Ubuntu 15.04, Clang 3.6, TBB v 4.4, libstdc++

At least some c++ features are disabled. tbb_config.h incorrectly calculates the __TBB_CPP11_RVALUE_REF_PRESENT. In my case it's diabled. This causes also some other troubles. E.g. tbb::concurrent_bounded_queue::emplace is wrapped with both __TBB_CPP11_VARIADIC_TEMPLATES_PRESENT(value is correct) and the __TBB_CPP11_RVALUE_REF_PRESENT. Since __TBB_CPP11_RVALUE_REF_PRESENT = 0 the emplace  is disabled.

Seems to me the problem is in flag calculation. Here is it (tbb_config.h, line 164 )

Multi-Tasking CoSimulation

Hi there,

I am pretty new to TBB or any threading libraries, so forgive me if my question might seem quite naive to you guys. I am currently developing a model based co-simulation platform. Basically, I want to run all of the models concurrently in order to minimize run time.

Here's my idea,

1) I wrap each model with my own C++ API, and then export them as dynamic linked libraries. e.g. M1.dll, M2.dll. Each dll has the same set of API functions. e.g. Initialize(), DoStep(), Terminate() etc.

2) I then load these dlls into my CoSim platform during run time.

Get start


I am newbie with Linux(I have Ubuntu 14.04) and TBB. I want to write codes with TBB library and run on computer. I have no idea how should I start .

Can anyone help me with a step by step tutorial or something that help me?

Suscribirse a Optimización