Ajuda em criação de uma thread

1. Ajuda em criação de uma thread

Marcus T.
martxyz

(usa Fedora)

Enviado em 22/04/2009 - 09:59h

Ajuda em criação de uma thread, Tou tentando fazer isso mais não tou conseguindo de maneira alguma,

Autopilot-http://pastebin.com/d7f0dab2
xmlauto.hxx-http://pastebin.com/m1f0bcf02
xmlauto.cxx-http://pastebin.com/m117327db
Esses são 3 codigos para rodar junto com um simulador de voo, o flightgear, mas eu tenho que criar uma thread mesmo que a ache desnecessaria
pensei em criar mudando esta parte do codigo:
#
error = recv (r, (char*) fdmbuf, 18, 0);
#
#
string fdmbufStrWhile(fdmbuf);
#
#
int positionCommaWhile = fdmbufStrWhile.find_first_of(',',0);
#
int positionLastNumberWhile = fdmbufStrWhile.find_last_not_of(end);
#
int sizeLastNumberWhile = positionLastNumberWhile - positionCommaWhile - 1;
#
#
indicatedTurnRate = fdmbufStrWhile.substr(0,positionCommaWhile);
#
aileron = fdmbufStrWhile.substr(positionCommaWhile+1,sizeLastNumberWhile);
#
#
dbl = strtod (indicatedTurnRate.c_str(),&pEnd);
#
#
db2 = c->update(0.02,dbl);
#
#
sprintf (fdmbuf, "%f", db2);
#
#
fdmbuf[8] = '\n';
#
#
error = send (s,fdmbuf, 9, 0);
#
#
cout << "AILERON: " << db2 << endl;
mas não a consegui, alguém tem alguma idéia ou ajuda.


  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts