dabbad: use the same getter design as other threads.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
test: create 2 different threads in unit test.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
test: explicitly use the capture thread id.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Merge pull request #20 from eroullit/thread-get-segv

Thread get segv fix