EmbLogic's Blog

Code to demonstrate how to pass string to a thread

RCS file: passing_string.c,v
Working file: passing_string.c
head: 1.4
branch:
locks: strict
root: 1.4
access list:
symbolic names:
keyword substitution: kv
total revisions: 4;    selected revisions: 4
description:
Code to pass string to a thread.
—————————-
revision 1.4    locked by: root;
date: 2014/01/23 04:10:07;  author: root;  state: Exp;  lines: +8 -1
pthread_exit() is used to kill the thread.
pthread_join() is used to make the main thread to wait untill the child thread finishes.
Type casting is done correctly.
Message is passed successfully to the thread.
—————————-
revision 1.3
date: 2014/01/23 04:04:15;  author: root;  state: Exp;  lines: +1 -0
Header file:<pthread.h> header file is included.
Still error is coming,probably prototype and definition of the function is not included.
—————————-
revision 1.2
date: 2014/01/23 04:02:31;  author: root;  state: Exp;  lines: +12 -0
Declaration errors.
Checking:probably pthread.h header file is not added.
—————————-
revision 1.1
date: 2014/01/23 03:53:43;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>