Displaying 4 results from an estimated 4 matches for "mutex1".
Did you mean:
mutex
2011 Mar 07
2
[LLVMdev] matching function call arguments
...(2). I will not run into cases involving entry (1+1) or
entry (fn return values). I am having trouble trying to compare the
arguments of entry and exit in the following scenario.
#include<stdio.h>
#include<stdlib.h>
#include<pthread.h>
struct sa
{
int a;
pthread_mutex_t *mutex1;
};
struct sa *s;
pthread_mutex_t mutex1;
int main()
{
s = (struct sa *)malloc(sizeof(struct sa));
s->mutex1 = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t));
entry(s->mutex1);
s->a++;
exit(s->mutex1);
return 0;
}
Thanks in advance,
Best,
--Hari
On 03/07/20...
2011 Mar 07
0
[LLVMdev] matching function call arguments
...+1) or
> entry (fn return values). I am having trouble trying to compare the
> arguments of entry and exit in the following scenario.
>
> #include<stdio.h>
> #include<stdlib.h>
> #include<pthread.h>
>
> struct sa
> {
> int a;
> pthread_mutex_t *mutex1;
> };
> struct sa *s;
>
> pthread_mutex_t mutex1;
> int main()
> {
> s = (struct sa *)malloc(sizeof(struct sa));
> s->mutex1 = (pthread_mutex_t *) malloc(sizeof(pthread_mutex_t));
>
> entry(s->mutex1);
>
> s->a++;
>
> exit(s->mutex1);
&...
2011 Mar 07
0
[LLVMdev] matching function call arguments
Could you be more precise about what you mean by "identical"? Would
entry(2) and entry(1+1) be considered equivalent?
If the same Value* is passed to entry and exit, then pointer equality
(==) will detect that.
Reid
On Mon, Mar 7, 2011 at 8:08 AM, Hari Pyla <harip at vt.edu> wrote:
> Hi,
> I am trying to identify if two functions were called with exactly the same
2011 Mar 07
2
[LLVMdev] matching function call arguments
Hi,
I am trying to identify if two functions were called with exactly the same argument. For instance, in the below example, assuming both entry() and exit() functions take a single argument, I would like to know if arg1 in entry() is same as arg1in exit().
int a;
struct sa
{
int b;
int c;
};
int main ()
{
struct sa s;
entry (arg1);
...
exit (arg1);
return 0;
}
In