This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <semaphore.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define NO_OF_THREADS 10 | |
struct Singleton { | |
char *Data; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <pthread.h> | |
#include <semaphore.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define NO_OF_THREADS 10 | |
struct Singleton { | |
char *Data; | |
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="HW2.PeoplePage" | |
NavigationPage.HasBackButton="True" | |
NavigationPage.HasNavigationBar="False"> | |
<ListView x:Name="PersonView" HasUnevenRows="True" > | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun Context.vibrate() { | |
val vibrator: Vibrator = try { | |
getSystemService(Context.VIBRATOR_SERVICE) as Vibrator | |
} catch (exception: ClassNotFoundException) { | |
exception.recordException() | |
null | |
} ?: return | |
when { | |
VERSION.SDK_INT >= VERSION_CODES.Q -> { |
OlderNewer