Why I cant see function in class? Gives me error producent() is not in this scope

```
class A
{
    public:
    void method()
    {
        pthread_t p;
        pthread_create(&p, NULL, producent, NULL);
    }
};

void * producent ( void )
 {
   return ( NULL );
 }

```