No subject
Thu Jul 12 09:23:04 CDT 2007
acceses while the ast_write is executed. So it would be safe to do something
like that:
struct ast_frame *f =3D (struct ast_frame*)malloc(sizeof(ast_frame));
ast_write(f);
free(f)
In that case that
unsigned char aux[sizeof(ast_frame)];
struct ast_frame *f =3D (struct ast_frame*)aux;
ast_write(aux);
would be equally thread safe.
If asterisk would like to make anything weird with the frame (like some kind of
jitter buffering or delay sending) it should duplicate the whole frame and take
care of the clone.
Best regards
Sergio
----=_Part_FA472E2E574444299995AE26D8B76AA9--
More information about the asterisk-dev
mailing list